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

dfu problem

Hello,

I'm realizing dfu.

  1. 1st case - for test NRF_LOG_PRINTF("main start\r\n"); // ******* main loop start ******* // while (1) { enterBootloader();

     }
    

Dfu works well.

  1. 2nd case - question I call enterBootloader(); in some function. I can see jumping to the enterBootloader(). But, I can't see my device in nrfToolBox.

  2. question : Application doesn't restart automatically after dfu done successfully.

  • I use sd130/sdk12.1.0. and experimental_ble_app_buttonless_dfu.

image description

thanks.

Parents
  • Please try to test using experimental_ble_app_buttonless_dfu example. The wait for 100ms doesn't guarantee that the flash operation is success.

    Could you let me know why couldn't you use what we have in enter_bootloader() in ble_dfu.c file ?

    Note that you can always debug the bootloader and check why it doesn't enter DFU mode. The bootloader is not a black box. To debug the bootloader you need to change optimization to level 0.

Reply
  • Please try to test using experimental_ble_app_buttonless_dfu example. The wait for 100ms doesn't guarantee that the flash operation is success.

    Could you let me know why couldn't you use what we have in enter_bootloader() in ble_dfu.c file ?

    Note that you can always debug the bootloader and check why it doesn't enter DFU mode. The bootloader is not a black box. To debug the bootloader you need to change optimization to level 0.

Children
No Data
Related