Flashing nrf52832 via ST link

Hi.

I have a board with nrf52832 and I would like to program it using the ST-Link programmer (using OpenOCD software). I installed the necessary components for "Sparkfun nrf52 Boards" in Arduino. I created a sketch that should blink the LED on pin P0.30:

void setup()
{
    pinMode(30, OUTPUT);  
}

void loop()
{
  digitalWrite(30, HIGH);
  delay(1000);
  digitalWrite(30, LOW);
  delay(1000);
}

Then I generated the .bin file using "Sketch -> Export compiled binary". I uploaded it to nrf52832 using the ST-Link programmer (OpenOCD). The programming procedure was successful. Unfortunately my LED connected to P0.30 is not flashing.

This is definitely not a hardware problem, because I asked users from https://devzone.nordicsemi.com/ to generate a .bin file in the SDK that will change the state to P0.30 every 1 second. After uploading the .bin file (that I received from them) my LED is blinking.

Can someone help me?

Check the polarity of the LED.

Polarity is OK.
As I wrote, it's not a hardware problem. When I upload the .bin file that I got from users from https://devzone.nordicsemi.com/, the LED blinks. If I generate a .bin from my Arduino sketch and upload it, the LED does not blink.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.