MCUXpresso erases well beyond the end of image when debugging

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

MCUXpresso erases well beyond the end of image when debugging

953 Views
r_strassburg
Contributor I

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

0 Kudos
5 Replies

864 Views
lpcxpresso_supp
NXP Employee
NXP Employee

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

864 Views
r_strassburg
Contributor I

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

0 Kudos

864 Views
diego_charles
NXP TechSupport
NXP TechSupport

Hi r.strassburg@gppag.de

I'm glad to help, to provide an accurate reply, 

could you let me know which MCU your board has?

Best regards, Diego. 

0 Kudos

864 Views
r_strassburg
Contributor I

Hi Diego,

The MCU is an LPC55S69.

Best regards,

Roger

0 Kudos

864 Views
diego_charles
NXP TechSupport
NXP TechSupport

Hi r.strassburg@gppag.de

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. 

0 Kudos