MC9S08PL4 EEPROM use

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

MC9S08PL4 EEPROM use

Jump to solution
1,032 Views
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 Kudos
Reply
1 Solution
1,021 Views
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

View solution in original post

0 Kudos
Reply
2 Replies
1,023 Views
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 Kudos
Reply
1,022 Views
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 Kudos
Reply