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

Program does not work on custom board

Hello,

I'm able to program the code (below) to the nRF52 DK. Leds 17 & 18 are working.

I'm unable to program the code to my custom board. Leds 9 & 10 are not working (I use a JLink Segger to program it).

Can someone helps me ?

Code :

#include <stdbool.h>
#include <stdint.h>
#include "nrf_delay.h"
#include "nrf_gpio.h"

#define LEDG_PIN 9 <- Custom board, 17 <- DK
#define LEDR_PIN 10 <- Custom board, 18 <- DK

int main(void)
{
nrf_gpio_cfg(LEDG_PIN,NRF_GPIO_PIN_DIR_OUTPUT,NRF_GPIO_PIN_INPUT_DISCONNECT,NRF_GPIO_PIN_NOPULL,NRF_GPIO_PIN_S0H1,NRF_GPIO_PIN_NOSENSE);
nrf_gpio_cfg(LEDR_PIN,NRF_GPIO_PIN_DIR_OUTPUT,NRF_GPIO_PIN_INPUT_DISCONNECT,NRF_GPIO_PIN_NOPULL,NRF_GPIO_PIN_S0H1,NRF_GPIO_PIN_NOSENSE);
nrf_gpio_pin_clear(LEDG_PIN);
nrf_gpio_pin_clear(LEDR_PIN);

nrf_gpio_pin_set(LEDG_PIN);
nrf_gpio_pin_clear(LEDR_PIN);

nrf_delay_ms(2000);

nrf_gpio_pin_clear(LEDG_PIN);
nrf_gpio_pin_set(LEDR_PIN);

nrf_delay_ms(2000);
nrf_gpio_pin_clear(LEDR_PIN);
}

Custom board :

Related