Error(OVERFLOW)

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
lock attach
Attachments are accessible only for community members.
Anonymous
Not applicable

When i build the my Project i faced OVERFLOW error,i have sent that error in PIC,

   

Please give some info in avoiding that error..

0 Likes
8 Replies
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

You've exhausted the availabel amount of Ram, check your variable data requirement.

   

Your PSoC3 has got only 8KB of SRam and you tried to use something like 48K. Reduce amount of Ram used or switch to PSoC5

   

 

   

Bob

0 Likes
Anonymous
Not applicable

 If i use any external memory can i store the CODE in that ??

0 Likes
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

No, code is not executed in external memory. But it is not flash you are short of, it is SRam!!

   

Have a look at the output files (.rpt,  to see where you burn that amount of ram

   

Bob

0 Likes
ETRO_SSN583
Level 9
Level 9
250 likes received 100 sign-ins 5 likes given

In your error screen it shows an array in RAM declared as 8,000 words, 16KB.

   

 

   

That will eat up 8 KB 🙂

   

 

   

Regards, Dana.

0 Likes
Anonymous
Not applicable

 If my Program code is more than 8KB will the PSoC creator show ADDRESS Overflow??

0 Likes
ETRO_SSN583
Level 9
Level 9
250 likes received 100 sign-ins 5 likes given

At a minimum statck overflow will occur at runtime.

   

 

   

Regards, Dana.

0 Likes
Anonymous
Not applicable

 RAM and FLASH are different, your code (program) store in flash not RAM.

0 Likes
ETRO_SSN583
Level 9
Level 9
250 likes received 100 sign-ins 5 likes given

Code is stored in FLASH, Stack in RAM. Were you referring to

   

8 KB code (FLASH) or 8 KB RAM usage ? If 8 KB RAM youi have no

   

space for Stack.

   

 

   

Regards, Dana.

0 Likes