How to Preserve Non-Volatile Memory with SPT

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

How to Preserve Non-Volatile Memory with SPT

1,377 次查看
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 项奖励
1 回复

1,366 次查看
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 项奖励