How to preserve second block of flash during debugging

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

How to preserve second block of flash during debugging

543 Views
paulderocco
Contributor III

I'm using a FRDM-K64F board, and I'd like to store some non-volatile data into the upper flash block. How do I configure the KDS debugger so that when I load my code, it doesn't erase the entire flash? I'm using the Multilink Universal FX and JTAG.

Labels (1)
Tags (1)
0 Kudos
3 Replies

332 Views
Jorge_Gonzalez
NXP Employee
NXP Employee

Hello Paul:

Maybe this tutorial is what you are looking for, explained by colleague Erich Styger:

Preserving Memory Ranges with Eclipse and P&E GDB Server | MCU on Eclipse


Regards!,
Jorge Gonzalez

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

332 Views
paulderocco
Contributor III

That works--thanks.

It is, however, kind of an ugly hack to modify a readonly file deep in the KDS system, though. It would be really nice if the developers added a way to do this on a per-project basis, as was apparently the case in the old CW.

0 Kudos

332 Views
BlackNight
NXP Employee
NXP Employee

Hi Paul,

yes, I agree this is only a hack and a workaround. I already have asked P&E if they could add that to their gdb solutions. As a customer of their Fx probes, for sure you can ask them too, so P&E knows that there is a need for this functionality.

Thanks,

Erich

0 Kudos