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

nrf52832_peripherals vs nrf52833_peripherals issue

Hi,

I have converted a project to use the nrf52833 (SES SDK16):

I get a fault with the following:

#define IO_OP_1					NRF_GPIO_PIN_MAP(1,5)
nrf_gpio_cfg_output(IO_OP_1); 

The build seems to still link to nrf52832_peripherals.h not nrf52833_peripherals.h, as the fault comes from the pin assertion

#define NUMBER_OF_PINS (P0_PIN_NUM)

Which equates to a definition in nrf52832_peripherals.h:

#define P0_PIN_NUM 32

I need the one in the nrf52833_peripherals.h file:

/* GPIO */
#define GPIO_PRESENT
#define GPIO_COUNT 2

#define P0_PIN_NUM 32
#define P1_PIN_NUM 10

Where else in the SDK should I be configuring the processor so I can get the correct files included?

Many thanks

Billy

Parents Reply Children
No Data
Related