OTA fails,it stay at bootloader mode.

Alice gravatar image

asked 2017-05-18 12:18:47 +0100

updated 2017-05-19 12:04:43 +0100

Hi all,

I'm using nRF5 SDK V12.2 to do the OTA for nRF52832 . In general, it's ok. However, if I close the bluetooth function on the phone or close the DFU app from the nRF toolbox to make some bad condition, the OTA is interrupted and it will stay at bootloader all the time and never switch to the original application. For the nRF5 SDK V11.0, the bootloader will switch to the original application when OTA fails. So could you tell me how to make it witch to the original application when OTA fails? Thanks.

nRF52_clife_SDK_0511.hex s132_nrf52_3.0.0_softdevice.hex nRF52_bootloader_V12.2_timeout.hex nRF52_clife_SDK_setting_0511.hex nRF52_SDK_APP_SD_BL_0511_V1.0.hex


edit retag flag offensive close delete report spam

1 answer

Sort by » oldest newest most voted
bjorn-spockeli gravatar image

answered 2017-05-19 08:49:20 +0100

Hi Alice,

you are correct that the Secure Bootloader in SDK v12.x.x will not timeout if there is no DFU activity and jump to the original application.

You can implement a timeout using the WDT, see this answer, or you can use the RTC, see this answer. I recommend using the WDT approach as this is the easiest to implement.

Best regards


edit flag offensive delete publish link more



Do you mean that after you flash the BL+Settings+Application+ SoftDevice the nRF52 jumps to the application? Or do you mean that you cannot etter the bootloader from the application? If its the latter , how are you triggering the switch from application to bootloader? Is it by holding down a button or have you implemented buttonless DFU?

Bjørn Spockeli ( 2017-05-19 12:48:08 +0100 )editconvert to answer

Are you using the WDT in your application?

Bjørn Spockeli ( 2017-05-19 15:59:24 +0100 )editconvert to answer

It's OK now. There is something wrong with my PC

Alice ( 2017-05-22 04:17:30 +0100 )editconvert to answer

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer. Do not ask a new question or reply to an answer here.

[hide preview]

Question Tools

1 follower


Asked: 2017-05-18 12:18:47 +0100

Seen: 70 times

Last updated: mai 19 '17