How to Preserve Non-Volatile Memory with SPT

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

How to Preserve Non-Volatile Memory with SPT

1,368 Views
Vagni
Contributor IV

My application saves some configuration data in the last sectors of the internal flash memory of i.MXRT1064 cpu.

With MCUXpresso PEmicro debugger 11.4.1 I preserve that memory range during flash programming.

Flash_imxrt1064.PNG 

In production I would like to use SPT to program my custom board.

How can I preserve memory ranges during writing bootable images with SPT ?

 

0 Kudos
1 Reply

1,357 Views
marek-trmac
NXP Employee
NXP Employee

Hi Alessandro,

write script in SEC Tool erases only memory needed for the application.

See in the write script:

@echo ### Erase memory before writing image ###
call "%blhost%" %blhost_connect% -j -- flash-erase-region 0x60000000 23868 9
if errorlevel 2 exit 2

 The rest of the FLASH should be kept untouched.

Regards,
Marek
0 Kudos