Reading/writing MK64FN1M0VLL12 flash address above 0x0007_FFFF?

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

Reading/writing MK64FN1M0VLL12 flash address above 0x0007_FFFF?

585 次查看
SolomonV
Contributor I

     I have a MK64FN1M0VLL12 project where I can read, erase, and write flash sectors between 0x0000_0000 – 0x0007_FFFF, but when attempting to read or write above 0x0007_FFFF I get a hard fault.

     When debugging the application using Kinetis Design Studio and attempting to view memory contents at 0x0008_0000 and above, I get "????????", which leads me to believe I’ve a project configuration issue that is limiting the project to 512K[0x0000_0000-0x0007_FFFF] access.

 

     What register[s] should I look to, to enable reading and writing above address 0x0007_FFFF?

 

     Project .FlashConfig section is configured as follows - 

/* Flash Configuration */
.section .FlashConfig, "a"
.long 0xFFFFFFFF
.long 0xFFFFFFFF
.long 0xFFFFFFFF
.long 0xFFFFFFFE

0 项奖励
回复
2 回复数

445 次查看
diego_charles
NXP TechSupport
NXP TechSupport

Hi @SolomonV 

Are you still facing this issue? If so please kindly let me know. I would recommend testing the Pflash demo of the MCUXpresso SDK, latest version is SDK 2.11v for the MK64.

Diego 

0 项奖励
回复

573 次查看
SolomonV
Contributor I

In debugging, I see that the SIM_FCFG2 register value is 0x40c00000, which looks like MAXADDR0 = MAXADDR1 = 0x40 which when concatenated with 13 trailing zeros works out to 0x8_0000 + 0x8_0000 [per 12.2.18 of K64P144M120SFSRM] which seems correct, but can't access address 0x8_0000 or greater.

0 项奖励
回复