SDK example used is iled_blinky.
OpenSDA reported FAIL when dropping "iled_blinky.bin" into the disk,
"error: The interface firmware FAILED to reset/halt the target MCU
Failure persisted after updating of OpenSDA firmware.
Note that it worked and LED was linking before it failed. Things I tried before it failed,
1) Compiled with default setting, flash image using openSDA, reboot and LED was blinking
2) Compiled version without XIP, flash image using openSDA, reboot and LED was blinking
3) Tried to Debug, break point at main successful once
4) Failed after reboot
If target MCU is hang due to corrupted spiFlash, is there away to clean the target spiFlash?
Please review and look forward to your suggestion to recover the board.
is this only happening if you try to boot from external flash? If the problem is an incorrect Image Vector Table in flash you can try one of the methods (MCU Boot Utility or SDK FlexSpi example project) in this post to erase the external flash.
Thanks for sharing the post to erase the flash. I tried out Serial Downloader + NXP-MCUBootUtility approach and it worked.
I share my steps in details for beginners like me.
[MIMXRT1060 EVK] Erasing Boot Device Memory with Serial Downloader Mode and NXP-MCUBootUtility
1.Download NXP-MCUBootUtility from Github
unzip - unzip into your user directory
exe - run NXP-MCUBootUtility.exe in bin later
2. Configure EVB into Serial Downloader Mode
3. Connect PC USB cable to J9
4. Power up EVB
5. Run NXP-MCUBootUtility.exe
Follow these steps provided by the guide in the Github,
- use default NOR settings, do not need to configure anything
- In Device status, should see Memory information after successful connection to the ROM (Step 3 shown below)
- Go to "Boot Device Memory" Tab (Step 4 shown below)
- Good to verify using read operation before erase or write