Hello, I use a SparkFun programmer to flash a nRF52832, once I flash my board (with the program below), I type in my terminal : "JLinkExe -device nRF52 -speed 4000 -if SWD".
I use SDK v12.1.0, my toolchain is gcc 4_9_3.
#include <stdbool.h>
#include <stdint.h>
#include "nrf_delay.h"
#include "bsp.h"
#include "nrf.h"
#include "system_nrf52.h"
#include "nrf_delay.h"
#define ENABLE_SWD 1
static const uint8_t leds_list[LEDS_NUMBER] = { 9, 7, LED_3, LED_4 };
int main(void)
{
/* Configure LED-pins as outputs. */
LEDS_CONFIGURE(LEDS_MASK);
while (true)
{
for (int i = 0; i < LEDS_NUMBER; i++)
{
LEDS_INVERT(1 << leds_list[i]);
nrf_delay_ms(500);
}
}
}
/**
*@}
**/
Can someone understand why the LED didn't blink in the SparkFun programmer?