This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

heap size .bss section

Hello,

How is it possible to see if a heap buffer overflow occured?

I just took a look into the .map file and the size of the .bss section is 0x00003c28. I've 16kB internal RAM. The size of the stack is 0x00000488, which is enough for my application.

In the startup code the heap size is

Heap_Size       EQU     0x00000000

                AREA    HEAP, NOINIT, READWRITE, ALIGN=3
__heap_base
Heap_Mem        SPACE   Heap_Size
__heap_limit

Does this means, that the heap size is the rest of the internal memory (up to the stack size)? And so everthing is correct (in my settings)?

best regards
Bernd