PAINT IT BLACK / PAINT THE STACK

When developing applications for an embedded system, and with embedded I mean bare-metal on a Cortex-M4 kind of embedded, it is often hard to judge what amount of memory the application is using during runtime. In these systems the Stack and Heap often share a region in memory and when memory is claimed of either type they tend to ‘grow’ towards each other. As long as they do not overlap everything works as intended, but when things do overlap the behaviour is undefined – often resulting in hard crashes of the application. Without the protection of an operating system, there is no safeguard and a real chance the memory will overlap.

Share This Story, Choose Your Platform!

Facebook
Twitter
LinkedIn

Bedrijven

Producten & werkwijze

Membership

Jobs