K61 FlexRAM Used as EEPROM

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

K61 FlexRAM Used as EEPROM

跳至解决方案
1,119 次查看
benjaminschroed
Contributor III

Hello,

After hunting around old forum posts, I still can't quite get my initialization correct for EEPROM.  FYI, the part I am using is MK61FX512VMJ15.

It appears that this device can have up to 16k of EEPROM, and I want to use it all.  From referencing the manual, it appears I need to set the following:

FCCOB5 = 0x08 (EEPROM backup needs to be 16x the size of the space I need, which gets me to 256 kB of backup)

FCCOB4 = 0x30 (8192 + 8192 subsystem size)

FCCOB0 = 0x80 (PGMPART command)

This however is only allowing my to write 4k of EEPROM (from 0x1400.0000 to 0x1400.0FFF) when I believe it should allow me to write 16k (from 0x1400.0000 to 0x1400.3FFF).

Anyone have any ideas?

Thanks!

标签 (1)
标记 (2)
0 项奖励
回复
1 解答
973 次查看
benjaminschroed
Contributor III

Apologies, I had a part of my code preventing reads/writes beyond 4k.  It appears that my configuration above is correct for allocating 16k of EEPROM for my part listed above.  I even tested writes beyond it, and it caused an exception, as expected.

在原帖中查看解决方案

0 项奖励
回复
1 回复
974 次查看
benjaminschroed
Contributor III

Apologies, I had a part of my code preventing reads/writes beyond 4k.  It appears that my configuration above is correct for allocating 16k of EEPROM for my part listed above.  I even tested writes beyond it, and it caused an exception, as expected.

0 项奖励
回复