How to erase a sector located in FlexNVM of TWRK40 kit? Hardware bug?

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

How to erase a sector located in FlexNVM of TWRK40 kit? Hardware bug?

跳至解决方案
1,377 次查看
bugs
Contributor III

TWRK40Kit has a K40X256, I couldn't erase a sector in FlexNVM.

According K20P144M100SF2RM.pdf, page 661

The Erase Flash Sector command is 0x09, it has a 24bit address parameter, but the FlexNVM is located at address 0x10000000, it is above 24-bit address space. How can I erase this FlexNVM?

0 项奖励
1 解答
861 次查看
anthony_huereca
NXP Employee
NXP Employee

Bit 23 controls which Flash block you're writing to.

 

When required by the command, address bit 23 selects between:

• program flash 0 (=0) block
• (for devices with FlexNVM) data flash (=1) block
• (for devices with program flash only) program flash 1 (=1) block

 

See section 28.4.12 of the K60 RM for more details, but that should get you going! 

在原帖中查看解决方案

0 项奖励
2 回复数
861 次查看
bugs
Contributor III

All the read/write FTFL commands are 24-bit address? How can we read/write FlexNVM?

0 项奖励
862 次查看
anthony_huereca
NXP Employee
NXP Employee

Bit 23 controls which Flash block you're writing to.

 

When required by the command, address bit 23 selects between:

• program flash 0 (=0) block
• (for devices with FlexNVM) data flash (=1) block
• (for devices with program flash only) program flash 1 (=1) block

 

See section 28.4.12 of the K60 RM for more details, but that should get you going! 

0 项奖励