This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

mBed Serial not working on latest nRF51-DK

I have a few nRF51-DK's lying around. I've compiled this simple test program using Yotta/mBed.

#include <mbed-drivers/mbed.h>

Serial pc(USBTX, USBRX);

DigitalOut led1(LED1);

void app_start(int argc, char* argv[])
{
	for (;;)
	{
		pc.printf("Hello\n");
		led1 = !led1;
		wait(1);
	}
}

When flashed to a board with the version "V1.2.0 2016.17" it works perfectly fine. However I have tried several boards with the version "V1.2.0 2016.21" and I never get any serial output (via USB). The driver is the same (I'm using Windows 7) and the port gets opened fine by several programs. There's just never any output. The LED flashes in both cases so I know the program is running.

Do you guys know what changed between those revisions? The only thing I can see by inspecting the board is that X2 has changed, and there's a new gold datamatrix near the Nordic logo.

Edit: I hooked it up to a scope and the output from both boards on pin 9 was identical. Must be a software issue. I've also downloaded the latest SEGGER drivers (6.00 or something). No joy.

Related