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

SDK 12.2 require preprocessor symbol NRF52832 or similar to be defined?

I am upgrading from v12.0 to 12.2. I am using Linux, Eclipse, GNU ARM and Eclipse managed make.

I get compiler error ...nrfsdk12.2/components/drivers_nrf/hal/nrf_gpio.h:39:2: error: #error "Not supported." Which is related to the symbol GPIO_COUNT which seems to indicate whether the chip has 32 or 48 GPIO pins.

Which leads me to believe I need compiler flag -DNRF52832. Since nrf_gpio.h included nrf_peripherals.h which expects NRF52832 or similar to be defined but it includes nrf.h which only might define NRF52832_XXAA. It seems that formerly, you needed to define NRF52 or NRF51 but now you need also to define a more specific member of the chip family?

Related