I'm totally new to Nordic, ARM development, and the mbed platform. Not new to embedded development however.
So far I can't get the simplest possible program to run.
I've got two nRF51822-mKIT developer boards and I'm trying to run the "mbed_blinky" demo program which is like a hello world for mbed. I can compile the code and load it on to the device, but nothing happens after that.
The code which is provided as a quick-start suggestion by mbed is shown below:
#include "mbed.h"
DigitalOut myled(LED1);
int main() {
while(1) {
myled = 1;
wait(0.2);
myled = 0;
wait(0.2);
}
}
I've verified that the LED1 parameter is defined as GPIO p18 which is connected to an LED on this board.
I've tried this on two different boards with the exact same result.
I've tried this with 3 different board firmware versions:
I've tried both of the two user-accessible LEDs on the board.
I've confirmed that the "Interface MCU" switch is set to ON.
I've confirmed that the SB6 and SB7 short contacts that break the connection of the LEDs to the MCU are in-tact and in fact shorted.
I've tried pressing the RESET button of course and I've tried toggling the "Target power" switch between ON and OFF.
I've tried pressing buttons 1 and 2 (which is just pointless, but why not).
Both boards were inspected and passed by inspector #14.
So far nothing seems to make this LED blink or even turn on which leads me to be believe the code is not running. What am I doing wrong, or what else can I do to troubleshoot this?
Thank you kind and generous people.
-Bryan J