MPC5748G Internal Flash can't erase!

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

MPC5748G Internal Flash can't erase!

878 Views
kimyoungsu
Contributor III

174341_174341.pngerase_test.png

I refered MPC5748G-Flash_RW-SSD_GHS614 source.

first time  i wrote at 0x00fb8000. it is ok

i tested  erase all internal flash. but it is not work.

so retry first time test.

0x00fb8000 address data cannot read. so I cannot write other firmware at mpc5748g(T32 Write)

????

help me.

Labels (1)
0 Kudos
2 Replies

652 Views
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi,

be aware that you are allowed aligned double word (64bits) only if it is fully erased (all bytes are 0xFF). If you over-program non-erased double word, it leads (most likely) to double bit ECC error. That's what you can see in the debugger - '??' means that the access was terminated due to bus error (ECC error). The solution is to erase affected block. If you access data or fetch code from flash which is corrupted by ECC error, exception is triggered.

If you still can't make it working, could you share your project?

Regards,

Lukas

652 Views
kimyoungsu
Contributor III

That is my bug.

I know that SSD_C55_CONFIG struct get information after FlashInit().

but My code SetLock(), GetLock(), FlashErase(),...  re-configured  before FlashInit().

Thank you.

0 Kudos