MCF51QM - EEEPROM programming

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

MCF51QM - EEEPROM programming

600 Views
guide19
Contributor II

Hi,

I am trying to program the EEEPROM on the MCF51QM128. I already partitioned the FlexNVM with parameters:

EEPROM Data Set Size 0x38

FlexNVM Partition Code  0x02

I read back the DataIFR and it is OK.

 

Now I would like to program EEPROM memory, but I am not sure if I do it correctly.

 

As far as I understand, to write to the EEEPROM the EEERDY bit must be set. After partitioning, it is set to "1".

I have checked the FCNFG register the EEERDY = 1.

And all I have to do is to write data to FlexRAM memory. So I write via BDM for example 0x00 value to address 0x280000.

Then should I wait until EEERDY bit is set to 1 again. But this is not happening.

 

So I am not sure if my procedure is correct. What address should be used to write to the EEEPROM/FlexRAM?

 

Does anybody have any example of writing the EEEPROM with specific values?

 

BR,

Jozef

Labels (1)
0 Kudos
2 Replies

432 Views
TomE
Specialist II

That's a very complicated module in that chip!

I'd suggest you search for App Notes and Software.

The MCF51QM128 page doesn't reference any app notes for this.

Searching NXP for "flexram" brings up quite a lot of hits for older products with this technology, and with docmentation, App Notes and Software. I found this which might be worth reading, and the associated software might be useful as a reference too:

http://cache.nxp.com/assets/documents/data/en/application-notes/AN4689.pdf?fsrch=1&sr=7&pageNum=1

Search for AN4689 and AN5074, and then try to find the associated software.

Tom

0 Kudos

432 Views
guide19
Contributor II

Hi Tom,

I already solved my problem. It was due to FEPROT register was programmed so it was disabling to porgram EEEPROM memory. After seting the FEPROT = 0xFF it is working fine.

0 Kudos