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

App_util_platform.c cannot compile nrf_nvic_state_t is undefined

Here's the original error:

compiling app_util_platform.c... C:\Keil_v5\Nordic_SDK\nRF5_SDK_12.1.0_0d23e2a\components\libraries\util\app_util_platform.c(17): error: #20: identifier "nrf_nvic_state_t" is undefined nrf_nvic_state_t nrf_nvic_state;

I'm working with SDK 12.1 and have traced the error back to a lack of identifier declaration in nrf_nvic.h.... so after looking around online I found

typedef struct { uint32_t volatile __irq_masks[__NRF_NVIC_ISER_COUNT]; /**< IRQs enabled by the application in the NVIC. */

uint32_t volatile __cr_flag; /**< Non-zero if already in a critical region */

} nrf_nvic_state_t;

I tried adding this struct to my nrf_nvic.h file but no luck

I also have the files included in my path and SOFTDEVICE_PRESENT is in the Define section for the compiler and the assembler options for target.

any ideas?

Parents Reply Children
No Data
Related