MPC56xx Flash Write Error to Unused Area

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

MPC56xx Flash Write Error to Unused Area

1,110 Views
kadiraktas
Contributor III

Hi,

I'm using MPC56xx. My software uses Flash A area. When I got an error on my project I had checked the flash memory and saw 0x00 on unused flash area (Flash B). (But sometimes I need to read these area) I handle these data in the interval of 0x00000200.  i.e. 

000C03E0FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF0B

000C03F0FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFB
000C040000000000000000000000000000000000DA
000C041000000000000000000000000000000000CA
000C042000000000000000000000000000000000BA
000C043000000000000000000000000000000000AA
000C060000000000000000000000000000000000D8
000C061000000000000000000000000000000000C8
000C062000000000000000000000000000000000B8
000C063000000000000000000000000000000000A8
000C080000000000000000000000000000000000D6
000C081000000000000000000000000000000000C6
000C082000000000000000000000000000000000B6
000C083000000000000000000000000000000000

000C0840FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFA6

000C0850FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF96

I couldn't read these address Do you have any idea?

Labels (1)
5 Replies

670 Views
davidtosenovjan
NXP TechSupport
NXP TechSupport

You haven't specify what sort of error you are facing, I suppose it is Power-on-reset during erase operation.

If you see following appnote it described quite well (section 3) phases of erase operation:

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

In the phase 1, program operation is being performed thus data field are zeros, what could explain what you see.

670 Views
kadiraktas
Contributor III

My software was suddenly stucked while the software was running. Then I connected to memory via by CodeWarrior (not download a new code) I observed that software is stucked when I tried to read all flash address and Program Counter stucked. 

Clearly:

I only read 0x000C0000 address field during initialization operations at the beginning of the software (only one time). But my software is stucked  during operational mode (operational mode   some operations are scheduled infinitly in a while loop) after working hours (I could not figure out why the software stopped while running). Then I restarted the software, my software couldn't read flashB area, stucked initialization mode and couldn't reach operational mode anymore. After I connected to EVB and stored all memory region and saw some faults which I sent in my first message. 

0 Kudos

670 Views
kadiraktas
Contributor III

In addition, when I try to download the code to MPC again there is no problem. So I am sure there is no uncorrecteble flash error. And in this situation I can use 0x000C0000 + 0x00000200 . . .because these addresses have 0xFFFF FFFF 

0 Kudos

670 Views
davidtosenovjan
NXP TechSupport
NXP TechSupport

Could you more more precisely define used device part number? Thanks

670 Views
kadiraktas
Contributor III

Of course, I am using internal flash of MPC5644A.

0 Kudos