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

cmsis pack on nrf52

hi.. i'm trying to use cmsis pack on nordic nrf52 with make command to get to cpu registers and have the folowing error:

Compiling file: main.c
In file included from ../../../main.c:5:0:
../../../../../../components/toolchain/cmsis/include/cmsis_armcc.h:57:26: error: redefinition of '__get_CONTROL'
 __STATIC_INLINE uint32_t __get_CONTROL(void)
                          ^~~~~~~~~~~~~
In file included from ../../../../../../components/toolchain/cmsis/include/core_cmInstr.h:61:0,
                 from ../../../../../../components/toolchain/cmsis/include/core_cm4.h:210,
                 from ../../../../../../components/device/nrf52.h:137,
                 from ../../../../../../components/device/nrf.h:53,
                 from ../../../../../../components/drivers_nrf/delay/nrf_delay.h:4,
                 from ../../../main.c:3:

What should i do to be able to use command such as __get_CONTROL()

Parents Reply Children
No Data
Related