Golden Rule to avoid HEAP issue

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Golden Rule to avoid HEAP issue

459 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by riscy00 on Sun Jan 06 23:26:28 MST 2013
Hi for C (LPC1114) and later C++ (LPC1768)

What the golden rules (for Cortex/ARM device) to avoids or minimize heap issue, in such context avoid "bad" programming during the coding.

What memall() useful for?, what wrong in declaring the variable array that is fixed to memory location (...done that before in Keil for chuck memory transfer between RAM and FLASH). I'm currently using LXPCexpresso (and later CodeRed suite NXP 256K). 

I have read about the stack and heap in google and familar with const char where text goes to FLASH and so on. I like to know more how to avoid risk of stack overflow issue.
0 Kudos
Reply
0 Replies