Beware that this post is related to an SDK in maintenance mode
More Info: Consider nRF Connect SDK for new designs
This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

"Undefined Symbol" error when compiling , nrf51822 SDK12.3.0

Hi, I encountered the following error in keil v5.12.0.0:

linking...
.\_build\nrf51422_xxac.axf: Error: L6218E: Undefined symbol nrf_drv_gpiote_in_event_enable (referred from main.o).
.\_build\nrf51422_xxac.axf: Error: L6218E: Undefined symbol nrf_drv_gpiote_in_init (referred from main.o).
.\_build\nrf51422_xxac.axf: Error: L6218E: Undefined symbol nrf_drv_gpiote_init (referred from main.o).
Not enough information to list image symbols.
Finished: 1 information, 0 warning and 3 error messages.
".\_build\nrf51422_xxac.axf" - 3 Error(s), 2 Warning(s).

I have included nrf_drv_gpiote.h

I added nrf_drv_gpiote.c

however I did not define anything relevant to use the GPIOTE, I don't know what they are, and I don't know where to find them. I know there is some config file in nrf52 sdk, but not the case with nrf51 sdk 12.

Can you make a list of possibilities regarding where I could have overlooked? For example missing marco definition etc.

Related