5 years, 8 months ago.

Programming fails with "The interface firmware FAILED to reset/halt the target MCU"

Hi everyone,

every time I trie to program the WISE-1530 I get the error message

error: The interface firmware FAILED to reset/halt the target MCU type: target

in the FAIL.txt

Same issue as here https://github.com/ARMmbed/DAPLink/issues/512 but the merge #513 doesn't seem to work for me.

I updated the DAPLink to the latest firmware but the problem still occures. I can't programm the device anymore at all...

Is there already a workaround?

Thanks.

Firmware details:

# DAPLink Firmware - see https://mbed.com/daplink
Unique ID: 0459000001d91ab400000000000000000000000097969902
HIC ID: 97969902
Auto Reset: 0
Automation allowed: 0
Overflow detection: 0
Daplink Mode: Interface
Interface Version: 0253
Git SHA: 64359f5c786363065a41ec15c348e3d53568da03
Local Mods: 0
USB Interfaces: MSD, CDC, HID, WebUSB
Interface CRC: 0x6527f1eb
Remount count: 0
URL: https://mbed.org/device/?code=0459000001d91ab400000000000000000000000097969902?version=0253?target_id=@T

1 Answer

5 years, 8 months ago.

Bit of a long shot but have a look here,

https://os.mbed.com/questions/68891/SWD-Error-on-LPC800-MAX/

The MCU may be locked out in some way. SWD programming does not always need a hardware reset to initiate programming mode depending on the MCU, you could check the schematic. If swdio and swclk pins were used on the last flashing, then it can be tricky to get it back into programming mode. I use these pins on some projects and have had this issue to the extent I've had to use my Segger flasher to recover the MCU. Also if you have access to a Segger Flasher you can confirm the MCU is functional by using that instead of the built in DAPLink.