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

debug bootloader for thread examples

Hi,

I wonder if there exists a debug bootloader for thread examples. There is a bootloader in the secure DFU example, but it is not for debugging. "examples/thread/dfu/bootloader" . I appreciate if you can point me to the right direction.

Best regards,

Ozan

Parents Reply Children
  • Hello,

    I have not tested,  but yes, that is the correct approach.

    If you don't need to debug anything in the bootloader, you may try to just comment out the two lines in main() of the bootloader's main.c file:

    ret_val = nrf_bootloader_init(dfu_observer);
    APP_ERROR_CHECK(ret_val);

    As I mentioned, I haven't tested it, but it may be a bit more complex than that, but as long as the bootloader is flashed, it should run into nrf_bootloader_app_start() if there is nothing wrong with the app (which is checked inside nrf_bootloader_init().

    Alternatively, if this doesn't work, look at nrf_bootloader_init() in nrf_bootloader.c:

    In the switch (activation result), just make sure that dfu_enter is set to false before if (dfu_enter). If this is false, it will run the application. I believe that this should work.

    Best regards,

    Edvin

  • Thank you,  Edvin. I will let you know when I apply & test your suggestions. 

    Best wishes

Related