Hello Nordic team
I am working on nRF52832 Dk, SDK v15.2, example "ble_app_buttonless_dfu".
Following code snippets is the GPIO configuration for pin interrupt:
ret_code_t err_code;
err_code = nrf_drv_gpiote_init();
APP_ERROR_CHECK(err_code);
nrf_drv_gpiote_in_config_t in_config = GPIOTE_CONFIG_IN_SENSE_LOTOHI(true);
in_config.sense = NRF_GPIOTE_POLARITY_LOTOHI;
err_code = nrf_drv_gpiote_in_init(ACCEL_INT_PIN, &in_config, in_pin_handler);
APP_ERROR_CHECK(err_code);
nrf_drv_gpiote_in_event_enable(ACCEL_INT_PIN, true);
ble_app_buttonless_dfu working correctly (OTA update). I have added support for accelerometer when any pin interrupt received on gpio pin as soon as board get reseted and print following message on serial console:
<warning> app: System reset
<info> app: Setting vector table to bootloader: 0x00078000
<info> app: Setting vector table to main app: 0x00026000
<info> app: Buttonless DFU Application started.
<info> app: INT detected
<error> app: Fatal error
<warning> app: System reset
<info> app: Setting vector table to bootloader: 0x00078000
<info> app: Setting vector table to main app: 0x00026000
<info> app: Buttonless DFU Application started.
<info> app: INT detected
<error> app: Fatal error
<warning> app: System reset
<info> app: Setting vector table to bootloader: 0x00078000
<info> app: Setting vector table to main app: 0x00026000
<info> app: Buttonless DFU Application started.
<info> app: INT detected
<error> app: Fatal error
<warning> app: System reset
<info> app: Setting vector table to bootloader: 0x00078000
<info> app: Setting vector table to main app: 0x00026000
<info> app: Buttonless DFU Application started.
<info> app: INT detected
<error> app: Fatal error
<warning> app: System reset
<info> app: Setting vector table to bootloader: 0x00078000
<info> app: Setting vector table to main app: 0x00026000
<info> app: Buttonless DFU Application started.
<info> app: INT detected
<error> app: Fatal error
<warning> app: System reset
<info> app: Setting vector table to bootloader: 0x00078000
<info> app: Setting vector table to main app: 0x00026000
<info> app: Buttonless DFU Application started.
<info> app: INT detected
<error> app: Fatal error
<warning> app: System reset
<info> app: Setting vector table to bootloader: 0x00078000
<info> app: Setting vector table to main app: 0x00026000
<info> app: Buttonless DFU Application started.
<info> app: INT detected
<error> app: Fatal error
<warning> app: System reset
<info> app: Setting vector table to bootloader: 0x00078000
<info> app: Setting vector table to main app: 0x00026000
Any suggestion why board reset after received GPIO interrupt?
Any help will be appreciated.
Regards
Raj