9 years, 9 months ago.

How do I download a .hex file to my nRF51822 Eval Kit - getting SWD errors

Hi,

I connect the Eval Kit via USB and a Volume called MBED shows up on my Mac's desktop. I double click on the Volume icon and then on the mbed.htm file. I sign in and get the sample application mbed_blinky and compile that and get a file called mbed_blinky_NRF51822_.hex.

There is then absolutely no documentation that I can find that tells me what to do with that .hex file in order to get it downloaded and running.

When I drag the .hex file onto the Finder's folder window that represents the MBED Volume, the file is moved and then the Volume is dismounted and is then remounted. The .hex file has disappeared and is replaced with a file called fail.txt, which has a single line it it that says "SWD error".

There is absolutely no documentation that I can find that explains to what SWD refers, what an SWD error is or how I might fix it.

This happens with both of my Eval Kits. I have updated the firmware to V0216, which seemed to work.

How do I download and run the .hex file that fell out of the compiler?

Thanks!

Hi, I have a similar problem, can you explain to how you manged to fix it finally?

posted by saman sattari 29 Dec 2014

1 Answer

9 years, 9 months ago.

Hi Thaddeus,

I had a similar issue with downloading .hex files on a nRF51822 with a PC. See is this helps, (my answer just above the green box)

http://mbed.org/questions/3727/nRF51822-Stopped-executing-downloaded-pr/

...kevin

Accepted Answer