Flash sector blank after reset

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

Flash sector blank after reset

439 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by amesonero on Fri Mar 14 08:52:50 MST 2014
Hi there

I'm struggling with a strange behavior I'm facing off in my LPCXpresso + LPC1769 Development Board  project. I will try to summarize as much as possible:

My code writes some data (512 bytes) at the beginnning of sector 5 using IAP routines


#define EM4000_CONFIG0x00005000
....
write_flash((unsigned *)EM4000_CONFIG, (char *)serializado, FLASH_BUF_SIZE);


Debugging this process from LPCXpresso's Memory monitor, I can verify that the content is being placed at that flash memory position as expected. So far so good.

Ok, then I terminate the execution of the program and run it again (just to double check that the content is not volatile and therefore is still there), but I can see in the memory monitor that all the sector is set again to 0xFF. Querying from the code to that memory position returns 0xFF indeed (so it's not just a monitor issue)

Moreover...If I move to, for example, next sector (#define EM4000_CONFIG 0x00006000), recompile and launch it again, then I can see the expected data at the start of sector 5. I'm going crazy about that.

Does it ring a bell to somebody? What's going on here?

Thank you very much in advance.
Best Regards
A.
0 项奖励
回复
0 回复数