I am using K20 series of micro controller. I intend to develop a bootloader code and application code. The bootloader code is downloaded using PE Micro Multilink USB Debugger. The p-flash region(0x0000 - 0x3FFF) has been set to protected region.
I then downloaded the Application layer started from 0x4000 and intended to debug it using PE debugger. However, I have not noticed that while downloading, the bootloader code (0x0000 - 0x3FFF) has been erased. Why and how is PE debugger still able to erase the flash region.
I am using PE for generating my linker file(s).
Thanks and regards,