Hi,
I am using MC9S08PA4 and cannot get the EEPROM to work. I want to write 1 byte in non-volatile memory and read it after a power reset
I used the reference manual and AN4570 for documentation, and I am writing in c:
- Setup the proper speed FDIV
- Unsecured the flash and eeprom
- Erase the first sector (0x3100)
- Verify Erase first sector
- Program the first sector
Is there any special command for reading the EEPROM, or just read first NVM_FCCOB ??
thanks,
Daniel
Hello Daniel,
Please be aware that if the FCLKDIV register has not been written, any flash and EEPROM program or erase command loaded during a command write sequence will not execute.
Are you writing to FCLKDIV register in order to divide BUSCLK down?
Have a great day.
David