i.MX RT :I can no longer write to the built-in Flash ROM.

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

i.MX RT :I can no longer write to the built-in Flash ROM.

1,217 Views
hiro33
Contributor III

Hello

I developed Custom board using iMX RT 1064.
My program is writing to the built-in Flash ROM and running.
Suddenly, I couldn't write to the built-in Flash ROM.

Please tell me how to deal with it.
It seems that it has not been erased.

Best Regards.

0 Kudos
Reply
7 Replies

1,204 Views
kerryzhou
NXP TechSupport
NXP TechSupport

Hi @hiro33 

    1. When you enter the serial download mode, do you use USB HID or UART to download the code?

  If you are using the USB HID, can you find the PID VID?

   Then, can you connect the chip or not?

   Do you use the Secure provisional tool or the MCUbootUtility to download the code?

 2. Do you use external debugger? Can you download the code to the internal RAM through the SWD?

3. What's the external flash you are using, if QSPI, you need to enable the QE bit to the new chip.

 

Best Regrads

Kerry

0 Kudos
Reply

1,175 Views
hiro33
Contributor III

Hi Kerry

I'm using internal Flash (0x70000000) of iMX RT 1064.
I used to be able to use Flash well.

I'm using SEGGER J-Link Debugger.
The debugger connection is successful, and read memory.
But I couldn't erase internal Flash.

Best Regards

0 Kudos
Reply

1,168 Views
kerryzhou
NXP TechSupport
NXP TechSupport

Hi @hiro33 ,

   If you can't erase the internal flash.

   Please enter the serial download mode, use the MCUBootUtility tool connect and erase your chip, please try it, whether it is OK or not?

   You can download the MCUbootUtility tool from this link:

https://github.com/JayHeng/NXP-MCUBootUtility/archive/refs/tags/v3.4.0.zip
the related user manual is:
https://github.com/JayHeng/NXP-MCUBootUtility

kerryzhou_0-1640329305026.png

Any updated information, please kindly let me know.

Best Regards,

Kerry

 

0 Kudos
Reply

1,159 Views
hiro33
Contributor III

Hi Kerry

>whether it is OK or not?
not.

I use the MCUBootUtility tool, but do not erase chip.

Is the chip broken?

Best Regards

0 Kudos
Reply

1,150 Views
kerryzhou
NXP TechSupport
NXP TechSupport

Hi @hiro33 

  Do you enter the serial download mode, and connect it?

  Please share me some screen picture about the MCUbootutility connection and read, and erase.

 

Best Regards,

kerry

0 Kudos
Reply

1,139 Views
hiro33
Contributor III

Hi Kerry

I took pictures.

-read is OK

MCUbootUtility_Read_OK.png

 

-erase is NG

MCUbootUtility_Erase_NG.png

Best Regards

0 Kudos
Reply

1,129 Views
kerryzhou
NXP TechSupport
NXP TechSupport

Hi @hiro33 

  Do you have any other board? I mean the same board, whether that works, just to check whether it is related to your RT1064 flash.

   BTW, in the serial download mode, if you have the USB HID, you also can try it, whether it is the same result.

 

Best Regards,

Kerry

0 Kudos
Reply