How to recover from OpenSDA failure to reset/halt the target MCU

cancel
Showing results for 
Search instead for 
Did you mean: 

How to recover from OpenSDA failure to reset/halt the target MCU

93 Views
Contributor II

Hi,

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
type: target".

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.

Thanks.

Cheers,

Shyan

0 Kudos
2 Replies

6 Views
Senior Contributor I

Hello Shyan,

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.

Kind regards,

Stefan

0 Kudos

6 Views
Contributor II

Hi Stefan,

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.

Cheers,

Shyan

[MIMXRT1060 EVK] Erasing Boot Device Memory with Serial Downloader Mode and NXP-MCUBootUtility 

1.Download NXP-MCUBootUtility from Github

         download zip - GitHub - JayHeng/NXP-MCUBootUtility 

         unzip - unzip into your user directory

         exe - run NXP-MCUBootUtility.exe in bin later

pastedImage_2.png

2. Configure EVB into Serial Downloader Mode

pastedImage_1.png

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,

      3.1 Setting the target device

     - use default NOR settings, do not need to configure anything

      3.2 Connecting target devices

      - In Device status, should see Memory information after successful connection to the ROM (Step 3 shown below)

      4.0 Advance Usage

      - set tool to run in Master Mode through the function menu bar Tools->Option

      4.4 Universal Flash Programmer

       - Go to "Boot Device Memory" Tab (Step 4 shown below)

       - Good to verify using read operation before erase or write 

pastedImage_7.png