I have been trying to execute a simple program for GPIOTE event. I am using SDK 15.0 and using the nrfx_gpiote li"brary. I have added the required headers.
Yet, I am getting an error "undefined symbol" for the function "nrfx_gpiote_in_init(BUTTON_1, &config, evt_handler);"
#include <stdbool.h> #include <stdint.h> #include "boards.h" #include "nrf_delay.h" #include "nrf_gpio.h" #include "nrf_nvic.h" #include "nrf_gpiote.h" #include "nrfx_gpiote.h" void gpiote_evt_handler (nrfx_gpiote_pin_t , nrf_gpiote_polarity_t); int main() { nrfx_gpiote_in_config_t config = NRFX_GPIOTE_CONFIG_IN_SENSE_HITOLO(true); nrfx_gpiote_in_init(BUTTON_1, &config, gpiote_evt_handler); while(1); }
Error:
.\Objects\eg3.axf: Error: L6218E: Undefined symbol nrfx_gpiote_in_init (referred from main3.o).
Not enough information to list image symbols.
Not enough information to list load addresses in the image map.