Beware that this post is related to an SDK in maintenance mode
More Info: Consider nRF Connect SDK for new designs

NICLA SENSE ME (nRF52832) Undefined Behavior in Bootloader

HI,

Following is the procedure to flash application we have tried:

  1. Mass Erase
  2. Write bootloader start address
  3. Flash soft device
  4. Flash bootloader 
  5. Flash application 

The application loads perfectly when we follow the above procedure. I can re-flash application / bootloader when the board is on with application running.

We have implemented push button press to switch to boot mode. Once the board switches to boot mode, that is with ble_dfu_bootloader and if I try to flash application or re-flash the bootloader itself the bootloader crashes with signal interrupt.  The signal interrupt is randomly getting generated in bootloader. 

A reference screenshot is given below.

Also observed that, an led is kept ON to indicate boot mode. That led keeps glowing even if i flash application or re-flash bootloader. Button press is configured as interrupt, that also does not work in this scenario. The only way to get out is power cycle the board.

But if I power cycle the board, the recently flashed application get loaded successfully. 

Any suggestion would be really appreciated. Thanks.

Regards,

Ijaz  

Parents Reply
  • This trace is basically showing the same failure as in the original one you shared. Can you post the app_switch() implementation here, or try to comment sd_softdevice_disable() function and see if you get the same error?

    Yes, If I do a power on reset it loads the application.

    Maybe I'm misunderstanding how it is supposed to work, but my question is if the mechanism used to enter boot mode starts working after a power cycle, or if it still crashes with the same error.

Children
Related