I have code that I am debugging now and it is around 8kbyte large and it sits in sector 0 (start location at 0x0000). According to the user manual each sector is 32kB.
I have pushed some custom data to Flash at position 0x8000 (sector 1), but after toggling the power of microcontroller and re-connecting the debugger, data is gone. It is replaced with 0xff.
Is this due to debugger clearing all sectors before downloading the code to host ? I was expecting only to clear the sector that is used by the code..
Can I prevent this in configuration ?
Thanks
I have pushed some custom data to Flash at position 0x8000 (sector 1), but after toggling the power of microcontroller and re-connecting the debugger, data is gone. It is replaced with 0xff.
Is this due to debugger clearing all sectors before downloading the code to host ? I was expecting only to clear the sector that is used by the code..
Can I prevent this in configuration ?
Thanks