Dear Nordic Team,
Thanks for supporting. Now i want to integrate GPIOTE with BLE UART example. When i call gpio_init(); this function got error like below image.please support anyone
SDK : SDK12.3.0
Hardware : PCA10040

Dear Nordic Team,
Thanks for supporting. Now i want to integrate GPIOTE with BLE UART example. When i call gpio_init(); this function got error like below image.please support anyone
SDK : SDK12.3.0
Hardware : PCA10040

Hi,
Error code 0x08 means NRF_ERROR_INVALID_STATE, and is returned by the GPIOTE driver init function if the driver is already initialized.
ble_app_uart example make use of the BSP library, which again use the application button library. The button library already initialize GPIOTE driver. You could add a check to make sure you do not initialize the driver if it is already initialized:
if (!nrf_drv_gpiote_is_init())
{
err_code = nrf_drv_gpiote_init();
APP_ERROR_CHECK(err_code);
}
Best regards,
Jørgen
Hi,
Error code 0x08 means NRF_ERROR_INVALID_STATE, and is returned by the GPIOTE driver init function if the driver is already initialized.
ble_app_uart example make use of the BSP library, which again use the application button library. The button library already initialize GPIOTE driver. You could add a check to make sure you do not initialize the driver if it is already initialized:
if (!nrf_drv_gpiote_is_init())
{
err_code = nrf_drv_gpiote_init();
APP_ERROR_CHECK(err_code);
}
Best regards,
Jørgen