K24 Cannot write to last flash sector

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

K24 Cannot write to last flash sector

720 次查看
noperator
Contributor I

Hi,

I am using the IFsh PEx component to write to flash on a MK24FN1M0VLL12. It has worked fine for storing configuration data and reprogramming parts of the flash, but it's not able to write to the last flash sector (Address 0xFF000 - 0xFFFFF). I have tried various routines: IFsh1_SetLongFlash and IFsh1_SetBlockFlash. They do not return any error, and no flash protection is enabled. I am able to manually modify the memory with GDB and J-flash, so I'm certain that it's not protected.

What could be causing this?

标签 (1)
0 项奖励
回复
2 回复数

659 次查看
jingpan
NXP TechSupport
NXP TechSupport

Hi Ivan,

K24 shouldn't have this kind of problem. You can use driver example in K24 SDK to check it.

May I ask what is IFsh?

Regards,

Jing

0 项奖励
回复

659 次查看
noperator
Contributor I

Looks like it was my mistake actually. Some bad code caused me to believe that the flash was not being written, and after examining the flash contents with Eclipse's memory viewer I saw that it was indeed not being written. Turns out that the memory viewers in Eclipse don't work well on flash memory and tend not to update. Using an external viewer I'm able to see the changes.

0 项奖励
回复