Sebastian,
depending on what tool you use for debug you can set breakpoints on memory access in Cortex processors. I use Keil, and setting a breakpoint on a overwrite, it looks like this:
You can also define memory areas etc, its just a matter of syntax. If you know an exact place (address) that is being written in the tasks stackarea, set this address as the breakpoint. The processor will then stop at the exact spot where the write (to the illegal address) occurs.
TIC
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Hi jeremyzhou,
thank you for your reply.
A local variable (in a function) is always stored in the stack, is that correct? The value of this variable I can read out via the JTAG interface via LPCXpresso, for this I use the breakpoints. I found out that the value of a local variable (integer) was overridden by another function / task. Now I want to find out which function / task overwrites this memory area.
I use the FreeRTOS V7.6 Memory Allocation implementation "heap_2".