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

NRF52 SDK12 hardfault if secure bootloader present

Hi! For a custom board, I have my app working ok. So I wanted to add the dfu secure bootloader to my project. I Had no problem to do that, both app and bootloader start ok and I could download the software package ok.

BUT: near to a minute after de app start, it crash. In debug I get: FPU_IRQHandler, inside of "Default Handler" at "arm_startup_nrf52" [UPDATED]: See the picture below.

If I erase the bootloader (no need of downdload the app again) all works fine [UPDATED]: I tried it again, and I was wrong.

I'm suspecting a memory issue, maybe in ram? But I had no succed in found a solution.

image description Help please!!!

Parents
  • Hi, i'm running s132 softdevice + freertos. I'm using FDU (I'm setting Use Single Precision in keil). I got the hardfault when I'm debugging the app after download it through DFU. Also the system crash but not reboot.

    I know how to debug with keil, but I can't find the cause.

    ["If I erase the bootloader (no need of downdload the app again) all works fine" is pretty strange. If you flashed the bootloader and erase it, the app shouldn't start. I'm not sure what's wrong here.] Me neither, I'will try with other app, but i'm follow the guides and examples to setup the secure bootloader and all seems to work fine.

    Any other suggestion in the meantime?

Reply
  • Hi, i'm running s132 softdevice + freertos. I'm using FDU (I'm setting Use Single Precision in keil). I got the hardfault when I'm debugging the app after download it through DFU. Also the system crash but not reboot.

    I know how to debug with keil, but I can't find the cause.

    ["If I erase the bootloader (no need of downdload the app again) all works fine" is pretty strange. If you flashed the bootloader and erase it, the app shouldn't start. I'm not sure what's wrong here.] Me neither, I'will try with other app, but i'm follow the guides and examples to setup the secure bootloader and all seems to work fine.

    Any other suggestion in the meantime?

Children
No Data
Related