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

how to Switch between over-the-air and uart bootloader mode?

Hi, How to integrate both over-the-air and uart bootloader application for an device? We have a custom board with nrf51822 chipset, and we need to implement the firmware update process, which can support both over-the-air and usb to uart type firmware update. Since we not yet tested the uart bootloader application, we dont have clear idea on it (like, how to make it enter into the bootloader mode). Can anyone suggest us how to handle this?

our requirement as follows, If the device is connected through the usb, and if the user want to update the firmware, the device should enter into dfu_dual_bank_hci (uart) bootloader mode, and do the firmware update.

And if the device is connected through ble, user should make it enter into the dfu_dual_bank_ble (over the air) bootloader mode by writing some value through the special characteristics created for it, and should do the firmware update.

Regards, Balaji

Parents
  • I'm developing a spi+ble bootloader on a custom board with a nrf51802_xAA on SDK11. As a starting point i want to have a functional uart+ble bootloader so i merged both examples. I have found myself in the same issues described above. However after the compilation is complete succesfully and i try to load the program the the flasher ends spitting the following error:

    Program Size: Code=16304 RO-data=468 RW-data=312 ZI-data=5140  
    FromELF: creating hex file...
    ".\_build\nrf51422_xxac.axf" - 0 Error(s), 3 Warning(s).
    *** Completed Cross-Module-Optimization after 3 iteration(s).
    Build Time Elapsed:  00:00:35
    nrfjprog.exe --family NRF51 --program "C:\Toolchain\00_Oval\05_toolchain\nRF5_SDK_11.0.0_89a8197 (limpio)\examples\dfu\ovalblebootloader\pca10028\dual_bank_ble_s130\arm5_no_packs\_build\nrf51422_xxac.HEX"
    ERROR: There is no debugger connected to the PC.
    nrfjprog.exe --family NRF51 --program "C:\Toolchain\00_Oval\05_toolchain\nRF5_SDK_11.0.0_89a8197 (limpio)\examples\dfu\ovalblebootloader\pca10028\dual_bank_ble_s130\arm5_no_packs\_build\nrf51422_xxac.HEX"
    Parsing hex file.
    ERROR: The file specified is not a valid hex file, has data outside valid areas
    ERROR: or does not have data in valid areas.
    

    Any hints ?

    Regards, Pol

Reply
  • I'm developing a spi+ble bootloader on a custom board with a nrf51802_xAA on SDK11. As a starting point i want to have a functional uart+ble bootloader so i merged both examples. I have found myself in the same issues described above. However after the compilation is complete succesfully and i try to load the program the the flasher ends spitting the following error:

    Program Size: Code=16304 RO-data=468 RW-data=312 ZI-data=5140  
    FromELF: creating hex file...
    ".\_build\nrf51422_xxac.axf" - 0 Error(s), 3 Warning(s).
    *** Completed Cross-Module-Optimization after 3 iteration(s).
    Build Time Elapsed:  00:00:35
    nrfjprog.exe --family NRF51 --program "C:\Toolchain\00_Oval\05_toolchain\nRF5_SDK_11.0.0_89a8197 (limpio)\examples\dfu\ovalblebootloader\pca10028\dual_bank_ble_s130\arm5_no_packs\_build\nrf51422_xxac.HEX"
    ERROR: There is no debugger connected to the PC.
    nrfjprog.exe --family NRF51 --program "C:\Toolchain\00_Oval\05_toolchain\nRF5_SDK_11.0.0_89a8197 (limpio)\examples\dfu\ovalblebootloader\pca10028\dual_bank_ble_s130\arm5_no_packs\_build\nrf51422_xxac.HEX"
    Parsing hex file.
    ERROR: The file specified is not a valid hex file, has data outside valid areas
    ERROR: or does not have data in valid areas.
    

    Any hints ?

    Regards, Pol

Children
No Data
Related