This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

softdevice upload ota

I am using the bootloader from github here to upload DFU over-the-air using an android phone. It works fine for bootloader and application uploads. But if I upload the softdevice (the same version that is already on) then the bootloader does not work anymore afterwards. The softdevice uploads correctly, crc checks are successful and the device resets, but after the reset the bootloader get's stuck in the ble_stack_init() and does not go anymore into DFU mode. Uploading the bootloader using JLink does not help either, I need to upload both the softdevice and bootloader again using JLink before it starts working again.

I am using a 32k PCA10031, with Softdevice s130 v1.0 and SDK 8.1 and single bank DFU upload.

Anybody has an idea what the problem could be or what I can do about it?

Thanks, Dominik

Parents
  • @hungbui, I had a look at the bootloader from SDK11, and adjusted my code accordingly, but still no luck! I even went and uploaded the dfu_dual_bank_ble_s130_pca10028.hex file contained in the SDK at examples/dfu/bootloader/hex together with the softdevice s130 v2. Same thing happens there: I upload the same softdevice (s130 v2) again through the the DFU upload on the Android phone. The upload seems to succeed from the Android side, then the device restarts, and the Android phone tries to connect again, but the device never comes back. After that I have to upload both softdevice and bootloader again with the JLink to get it to work again.

Reply
  • @hungbui, I had a look at the bootloader from SDK11, and adjusted my code accordingly, but still no luck! I even went and uploaded the dfu_dual_bank_ble_s130_pca10028.hex file contained in the SDK at examples/dfu/bootloader/hex together with the softdevice s130 v2. Same thing happens there: I upload the same softdevice (s130 v2) again through the the DFU upload on the Android phone. The upload seems to succeed from the Android side, then the device restarts, and the Android phone tries to connect again, but the device never comes back. After that I have to upload both softdevice and bootloader again with the JLink to get it to work again.

Children
No Data
Related