K61 FlexRAM Used as EEPROM

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

K61 FlexRAM Used as EEPROM

ソリューションへジャンプ
1,195件の閲覧回数
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 解決策
1,049件の閲覧回数
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 返信
1,050件の閲覧回数
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 件の賞賛
返信