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

P0.09 as GPIO

Hello I try to use P0.09 as GPIO with this simple code but not working. (Works well with pin P0.08)

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

const uint32_t UICR_ADDR_0x20C    __attribute__((at(0x1000120C))) __attribute__((used)) = 0xFFFFFFFE;

#define CONFIG_NFCT_PINS_AS_GPIOS

int main(void)
{

   #define PIN_TEST 9
    nrf_gpio_cfg_output(PIN_TEST);
    while (true)
    {
       nrf_gpio_pin_clear(PIN_TEST);
       nrf_delay_ms(500);
       nrf_gpio_pin_set(PIN_TEST);
       nrf_delay_ms(500);
    }
}
Related