MC9S08PL4 EEPROM use

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 
1,216件の閲覧回数
leslie
Contributor II

Hi,

I am trying to use the EEPROM in the MC9S08PL4 to remember some settings, but...

When I try to erase one sector, the result in the FSTAT is: only ACCERR is HI.

I tried not to protect the EEPROM by leaving EEPROT erased (FF7D), so that DPOPEN would be HI.

Also FSEC's last bit is LO (FF7F), so SEC[1:0] would be 10b, not secured.

There is a byte called FOPT, that the Reference Manual (Rev.5) doesn't say much about.

My CYCLONE programmer offers securing the MCU, but I don't use that option.

Why do I have no access?

Is there a collection of sample programs, or white paper, or true explanation on how to do it? Production started and the poor thing still can't remember its settings.

HELP PLEASE!

0 件の賞賛
返信
1 解決策
1,205件の閲覧回数
leslie
Contributor II

Thank you Vincente,

I got the solution last night. The Reference Manual says global address [23] is used to make a difference between flash and EEPROM. I was stupid enough to follow... maybe it is true only for some commands.

It's all ok now. Yuppieeeee

元の投稿で解決策を見る

0 件の賞賛
返信
2 返答(返信)
1,207件の閲覧回数
vicentegomez
NXP TechSupport
NXP TechSupport

Hi

 

Maybe the following application note can help you.

https://www.nxp.com/docs/en/application-note/AN4570.pdf

 

There is also a sample code on the S08PT labs on

https://www.nxp.com/docs/en/supporting-information/TWR-S08PT60-LABS.zip

 

I hope this will help you

 

have a good day

 

0 件の賞賛
返信
1,206件の閲覧回数
leslie
Contributor II

Thank you Vincente,

I got the solution last night. The Reference Manual says global address [23] is used to make a difference between flash and EEPROM. I was stupid enough to follow... maybe it is true only for some commands.

It's all ok now. Yuppieeeee

0 件の賞賛
返信