I have written a custom bootloader and app that share a sector. Thus I don't want the programmer to erase the whole sector while programming either of them.
If I align my bootloader and app based on sector size, it works fine.
I understand erasing page reduces the life of the flash but I'm tight on memory.
My device is LPCxpresso55S36 and I'm using MCUXpresso 11.7.
I guess I need to do something like what mentioned here but I can't find the setting.
Link: Solved: Preventing stored variables in flash from being er... - NXP Community
Thank you
Solved! Go to Solution.
Hello @AKdy
Sorry MCU-link debug configuration on MCUXpresso IDE doesn't support page erase.
BR
Alice
> I have written a custom bootloader and app that share a sector.
I think this is not a good idea.
Flash can only be erased sector-wise, and I believe the LPC55S is not different.
I suppose you have only tried your bootloader so far with an otherwise empty sector (except for the BL code). Programming works down to minimal cell size usually 16 or 32 bit. Easing does not.
Check if the bootloader can erase an existing application without killing itself.
Hello @AKdy
Which debug probe do you use? The configuration you mentioned is based on PEmicro debugger,
BR
Alice
Hi Alice,
Thanks for the reply.
I'm using the on-board debugger on the LPCXpresso55S36. I have flashed the debugger with MCU Link firmware version 3 and my MCUXpresso IDE is version 11.7
Thanks
Hello @AKdy
Sorry MCU-link debug configuration on MCUXpresso IDE doesn't support page erase.
BR
Alice