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

nRF52832 intermittent

Hi.
I'm programming a nRF52832 with a simple "HelloWord" code that just blinks two led. This code was created by MBED and loaded by SEGGER J-Link but I'm having some intermittent problems.
I've programmed and erased the nRF a lot of time yesterday and the results were always OK (the leds blinked as I've programmed). But today I'm not being able to blink the leds. The programming process is OK (the result of programming process is SUCCESS) but no one led blinks.
It has hapenned two days ago too. I've programmed a lot of time but without any blinking leds. So yesterday the leds blinked very well... and today, the leds didn't blink again.
The circuit is OK. And there's no changes o leds state (hing-low).
Have anyone already seeing anything like this?

//----------------------------------------------------------

#include "mbed.h"
#include "platform/mbed_thread.h"


// Blinking rate in milliseconds
#define BLINKING_RATE_MS 500

int main()
{


// Initialise the digital pin LED1 as an output
DigitalOut led(P0_28); //
DigitalOut ledB(P0_27); //
DigitalOut ledG(P0_26); // 
DigitalOut ledR(P0_25); // 


while (true) {

led = !led;
ledR = !ledR;
ledG = !ledG;
ledB = !ledB;

wait_ms( 1000 );

// thread_sleep_for(BLINKING_RATE_MS);
}
}

//--------------------------------------------------------------------------------

Related