cancel
Showing results for 
Search instead for 
Did you mean: 

PSoC 5, 3 & 1 MCU

KaSo_1669721
New Contributor II

Please help me

I've declared and defined the global variable...let say vrc and at the begining of main()

I've redefined vrc but when I print out the result, garbage was printed...why?(please refer file isg-no-enc-test-handle3.txt)

Any help is appreciated

Kamari

0 Likes
1 Solution
JoMe_264151
Expert II

The sprintf() buffer variable "dbg" is defined quite too small. So some parts of your sram gets overwritten.

Is there a reason for the large stack size of 0x1200 bytes?

Bob

View solution in original post

0 Likes
5 Replies
JoMe_264151
Expert II

Can you please post your complete project or a shortened version that shows the error so that we all can have a look at all of your settings. To do so, use

Creator->File->Create Workspace Bundle (minimal)

and attach the resulting file.

Which PSoC kit are you using? CY8CKIT-0??

Bob

0 Likes
KaSo_1669721
New Contributor II

Thanks Bob…I resend here

Thanks in advance for your help

Kamari

0 Likes
JoMe_264151
Expert II

The sprintf() buffer variable "dbg" is defined quite too small. So some parts of your sram gets overwritten.

Is there a reason for the large stack size of 0x1200 bytes?

Bob

View solution in original post

0 Likes
KaSo_1669721
New Contributor II

Thanks Bob

I’ll try today

Regarding stack size, actually no reason, just try n error

0 Likes
KaSo_1669721
New Contributor II

Thanks Bob

Everything back to normal now

Thanks again

Kamari

0 Likes