George Edwards
George Edwards

Reputation: 9229

Why is my PC breaking my Mbed? - swd Error

I am using a nRF51-DK mbed board and programming it from both my mac and PC. However, when I use my PC to compile a program and then download the .hex to the board, I get a Fail.txt file show up in the mbed file system. It reads:

SWD Error

After that, no matter what I do I get fail.txt

TIMEOUT

I move to my mac, boot the mbed board in bootloader mode and then reinstall the latest firmware. After a reboot, the device works fine. When I try to instal any more programs from my PC, it breaks again.

Why is my PC breaking my mbed?

NB: I am using a Microsoft Surface Pro 3 running Windows 10 Pro x64

Upvotes: 0

Views: 895

Answers (1)

Clifford
Clifford

Reputation: 93576

A solution is suggested here:

  1. Plug Board in, wait for solid status LED
  2. Press and hold reset button and at same time drag blinky on to mass storage device.
  3. Release reset and program should now load, no error.

I hope that makes sense to you - I have not used Mbed; I simply Googled "SWD Error" and several Mbed related hits popped up. I was surprised because SWD (Single Wire Debug) is not peculiar to MBed, and expected to need "SWD Error"+ mbed as a search term; it seems this issue is common on mbed perhaps.

Anyway my advice in future is to always start by Googling the exact error message - it works in very many cases!

Upvotes: 1

Related Questions