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

Custom Buttonless Bootloader fails after a power cycle

Hello,

I was working on buttonless dfu feature. I add buttonless dfu service as shown as ble_app_buttonless_dfu example and i manage to perform a ota dfu on nrf52 devkit with my firmware.

But when it comes to my custom board with a bootloader which is compiled with custom board header.

At first, it works my application starts advertising flawlessly.

Then i try to upload a firmware it enters the bootloader mode but it will stuck.

After that i realize my custom board enters bootloader mode after a power cycle and never go back to application.

I saw WDT inside of the dfu functions but they are also doesnt help me to start over device from application.

Maybe it help I also try to load nrf52 devkit firmware to my custom board this time power cycle error dissapeared but dfu still not working.

I belive my case is similiar to this CASE but I couldnt see any solid answer in this link.

Thank you for your attention and support.

Parents
  • Hello,

    If you are struggling with it entering DFU mode, I suggest you check out the _debug bootloader project (pca10040_s132_ble_debug). Check the log to see the reason why it stays in DFU mode.

    My guess is that the button enter method is enabled in your bootloader, and on your custom board, this may be shorted to ground. Please check the definition in your bootloaders sdk_config.h file:

    NRF_BL_DFU_ENTER_METHOD_BUTTON and set it to 0, and see if that changes the behavior.

    Best regards,

    Edvin

Reply
  • Hello,

    If you are struggling with it entering DFU mode, I suggest you check out the _debug bootloader project (pca10040_s132_ble_debug). Check the log to see the reason why it stays in DFU mode.

    My guess is that the button enter method is enabled in your bootloader, and on your custom board, this may be shorted to ground. Please check the definition in your bootloaders sdk_config.h file:

    NRF_BL_DFU_ENTER_METHOD_BUTTON and set it to 0, and see if that changes the behavior.

    Best regards,

    Edvin

Children
Related