Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
9 years ago.
NRF51 mbed beginner programming
Hi, I have buy a NRF51 DK , I unbox and pc connect I have a JLINK new drive
I open mbed develop website, import a new project for blink led
include the mbed library with this snippet
#include "mbed.h" DigitalOut myled(P0_19); int main () { while (1) { myled =1; wait (0.2); myled =0; wait (0.2); } }
I compile, I obtain a hex file, I drag to JLINK drive and ..... nothing
Can any one help me thanks Fabio
I follow this steps: https://developer.mbed.org/platforms/Nordic-nRF51-DK/
To update the firmware:
Unplug DK from the usb or turn power switch off. Press and hold down the reset button and connect the usb while doing so or turn on power DK should now enumerate as an MSD named "BOOTLOADER" Copy the firmware binary to the BOOTLOADER drive. Wait until the drive dismounts and the mbed LED is flashing continuously Unplug (or turn off/on) the board and plug in again, and the board should enumerate as usual.
I upload a blink example, but on the drive I found a fail.txt file inside this text: SWD ERROR
I try more and more time
this work!!!!! but after upload the file I need press "reset" button and after the led start blink
include the mbed library with this snippet
Fabio
posted by Fabio Parigi 26 Apr 2015