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

ble_app_buttonless_dfu reset on pin interrupt

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

Parents Reply Children
  • Hi , @Hung Bui 

    I am also faced same issue. Please give the solution for this issue. 

    SDK15.2.0  and nRF52810 custom board. 

    <info> app: Setting vector table to bootloader: 0x00028000
    <info> app: Setting vector table to main app: 0x00019000
    <error> app: Fatal error
    <warning> app: System reset
    <info> app: Setting vector table to bootloader: 0x00028000
    <info> app: Setting vector table to main app: 0x00019000
    <error> app: Fatal error
    <warning> app: System reset
    <info> app: Setting vector table to bootloader: 0x00028000
    <info> app: Setting vector table to main app: 0x00019000
    <error> app: Fatal error
    <warning> app: System reset
    <info> app: Setting vector table to bootloader: 0x00028000
    <info> app: Setting vector table to main app: 0x00019000
    <error> app: Fatal error
    <warning> app: System reset
    <info> app: Setting vector table to bootloader: 0x00028000
    <info> app: Setting vector table to main app: 0x00019000
    <error> app: Fatal error
    <warning> app: System reset
    <info> app: Setting vector table to bootloader: 0x00028000
    <info> app: Setting vector table to main app: 0x00019000
    <error> app: Fatal error
    <warning> app: System reset

  • Hi,
    When you see an assert, please try to debug it. You can have a look at this guide.

    Please create a new case with more information how you test it with step by step. 

Related