Not able to mass erase/flash after running AN12255SW Flash Remap

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

Not able to mass erase/flash after running AN12255SW Flash Remap

Jump to solution
294 Views
schafbo
Contributor III

After running the example AN12255SW "Flash Remap Test" in MCUXpresso, I'm not able to reflash my RT106x. Also I'm not able to do a mass erase in order to reprogram again. I'm using an MCU-Link (LinkServer) debugger with MCUXpresso. Any attempt to program/mass erase shows that 0 SWD devices are connected, then I receive the following serial output when performing a mass erase:

Executing flash operation 'Erase' (Erase flash) - Fri Jan 10 08:57:39 CST 2025
Checking MCU info...
Scanning for targets...
Executing flash action...
MCUXpresso IDE RedlinkMulti Driver v11.10 (Jul 2 2024 19:33:51 - crt_emu_cm_redlink.exe build 741)
( 0) Reading remote configuration
Wc(03). No cache support.
Found chip XML file in C:/Users/.../workspace/flash_remap_test/Debug\MIMXRT1062xxxxA.xml
( 5) Remote configuration complete
Reconnected to existing LinkServer process.
Connecting to probe 1 core 0 (using server started externally) reports:
'Ee(42). Could not connect to core.'
Retrying...
Reconnected to existing LinkServer process.
Server OK but no connection to probe 1 core 0 (after 3 attempts) - Ee(42). Could not connect to core.
============= SCRIPT: RT1060_connect.scp =============
RT1060 Connect Script
DpID = 0BD11477
Error: Wire Ack Fault - target connected?
Error: Wire Ack Fault - target connected?
Disabling MPU
Error: Wire Ack Fault - target connected?
Error: Wire Ack Fault - target connected?
Configure FlexRAM for 768KB OC RAM, 128KB I-TCM, 128KB D-TCM
Error: Wire Ack Fault - target connected?
Error: Wire Ack Fault - target connected?
Error: Wire Ack Fault - target connected?
Finished
============= END SCRIPT =============================
Failed on connect: Ee(42). Could not connect to core.
No connection to chip's debug port
(100) Target Operation Failed
Unable to perform operation!
Command failed with exit code 1

I've encountered problems reflashing before, but usually this is solved by erasing the chip and then programming again.. is there a way to recover from this and test AN12255SW again?

Thanks

Labels (1)
0 Kudos
Reply
1 Solution
271 Views
diego_charles
NXP TechSupport
NXP TechSupport

Hi @schafbo 

Have you tried an erase when the MCU is in serial  downloader mode? If SWD keeps failing, please try to do a recover using MCUXpresso Secure Provisionining Tool, this tool sends erase commands over UART/USB.

Please let me know your results. 

Diego 

 

View solution in original post

0 Kudos
Reply
4 Replies
175 Views
schafbo
Contributor III

Nevermind, I see that LPUART1 is used. After setting the boot mode pins I was able to set the MCU into serial download, then reset and program again. Thanks!

168 Views
diego_charles
NXP TechSupport
NXP TechSupport

Hi @schafbo 

Thank you for letting us know! I am glad that you can keep developing. 

Diego

0 Kudos
Reply
194 Views
schafbo
Contributor III

Diego,

I'm not using an eval board, but the boot mode pins can be set to serial download with some effort. I am using the process outlined in the doc "Recover_RT1064". Is there a specific UART line on the MCU that I need to use, or it can work with any of them?

0 Kudos
Reply
272 Views
diego_charles
NXP TechSupport
NXP TechSupport

Hi @schafbo 

Have you tried an erase when the MCU is in serial  downloader mode? If SWD keeps failing, please try to do a recover using MCUXpresso Secure Provisionining Tool, this tool sends erase commands over UART/USB.

Please let me know your results. 

Diego 

 

0 Kudos
Reply