On 08/23/2011 02:10 PM, Evan Hunter wrote:
The way I do this on the STM32 is to use TCL script JTAG to zero the memory
before allowing GDB to attach.
This is necessary since a previous run of the system can leave valid
contents in the RTOS variables, which are indistinguishable from real RTOS
data.
With the memory zeroed, the system behaves as expected with a single thread
of execution showing in the boot-up code, then multiple threads once the
system has started.
However, if there *is* no memory at those locations after reset, this
scheme will not work when debugging the memory initialization code, so
there needs to be some way to disable the RTOS support.
cu
Michael
_______________________________________________
Openocd-development mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/openocd-development