I'm using MCUXpresso to debug on an eval board. The application I'm working on has a second-stage bootloader, I place into the area 0 through 0x4000. The main application is flashed starting at address 0x4000. Unfortunately, when I try to debug the bootloader via MCUXpresso, it erases the first 0x8000, erasing part of the application.
How can I prevent MCUXpresso from erasing beyond the end of the region I'm flashing?
Thanks.
Roger Strassburg
When debugging via LinkServer, the IDE's flash drivers will erase a number of sectors based on the size of the image. Thus on LPC55S69, the amount of flash memory erased will be rounded up to 32KB alignment - as that is the size of a sector..
Thus in your case, you will need to start your image on a 32KB sector boundary, not part way through a sector.
Regards,
MCUXpresso IDE Support
Thanks for your reply. I was hoping there might be a way around this,
since it would make it easier to set up the right configurations for
debugging and for production.
Best regards,
Roger Strassburg
I'm glad to help, to provide an accurate reply,
could you let me know which MCU your board has?
Best regards, Diego.
Hi Diego,
The MCU is an LPC55S69.
Best regards,
Roger
Please check the LPCxpresso support reply. You will need to move your application to a different sector, in example 0x8000.
If you require further support please , comment it.
Regards, Diego.