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

DFU fail while process through buttonless project

Hi,

I got a problem that doing the DFU through buttonless example, but successfully upgrade only in bootloader.

I used OPPO R9s (Android 6) with my personal cell phone and the Samsung reference phone (Android 5) provided from my customer.

Both phones got the problem that while I do the DFU in application, the connection stuck in connecting and when time out the DFU failed.

But if I only download the bootloader in chip, the DFU can successfully upgrade.

I used SDK v15 and softdevice is 6.0.0

On my cell phone I used nRF Connect APP

Does anyone got this problem before?

Thanks.

  • Hi Max, 

    A sniffer trace would greatly help identifying the issue. 

    Do you have any modification to the code of the bootloader/the buttonless project ? 

    Do you do buttonless with bonding or not ? 

    Could you provide any log ? 

  • Dear Hung Bui

    I haven't trace it yet, I'll arrange a time to do it when my top priority has done.

    I didn't modify the bootloader, and the buttonless I only implement with my application, the part of DFU I didn't modify with.

    And I using without bond DFU that set as default in buttonless example.
    Here's the log that catch from the application side when the DFU trig.

     0> <info> app: Received indication state 1
     0> <info> app: Device is preparing to enter bootloader mode.
     0> <info> app: Device will enter bootloader mode.
     0> <info> app: Power management wants to reset to DFU mode.
     0> <INFO> [app_shutdown_handler]: Device ready to enter bootloader..
     0> <info> app: Power management allowed to reset to DFU mode.

    And then I got nothing more, although I turn on the log in bootloader, I also don't get any log from there. After a while the device seems timeout and reboot, the application still the old one.

  • Hi MaxLiao, 

    Could you check if it actually enter bootloader ? Do you have any LED to indicate that it enters the bootloader ? 

    Do you modify the address in your application ? 

    Could you test with the buttonless example we provided in our SDK ? 

    Regarding monitoring the RTT log to log both application and bootloader, you may need to have a look here or here.

     

Related