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

SDK 12: dfu/bootloader questions

Hi,

With the latest SDK (12) there isn't an UART bootloader example available. Am I right?

I'm trying to understand what are the options to program the nRF51 during production. I'll use a JLink to program the bootloader but then I need to upload the app through it. I'd prefer a solution that doesn't require a smartphone nor a nRF kit for uploading so I think that having the UART bootloader would be a good ideia. However since it's not available:

  1. Do you plan to release (again) a UART bootloader on newer SDKs? Or, any pointers on how to implement it with current SDK?

  2. Do you plan to support uploading through BLE bootloader without requiring an nRF5 kit? (ie, using a simple BLE dongle, as I'm already using to test the PCB after production)

  3. Is it possible to program both the bootloader and the app code with JLink?

Thanks!

Parents
  • Ok, got it working with a .bat script. Basically, you just need to merge all the .hex you wat to write into memory.

    nrfutil settings generate --family NRF51 --application %app_hex% --application-version 0xFFFFFFFF --bootloader-version 0xFFFFFFFF --bl-settings-version 1 bootloader_settings.hex
    
    mergehex -m %bootloader_hex% %app_hex% bootloader_settings.hex -o nrf_bootloader_and_app.hex
    
    nrfjprog --reset --program %sd_hex% -f nrf51 --chiperase 
    nrfjprog --reset --program nrf_bootloader_and_app.hex -f nrf51
    

    One question still persists though. Is serial DFU planned for a future SDK?

Reply
  • Ok, got it working with a .bat script. Basically, you just need to merge all the .hex you wat to write into memory.

    nrfutil settings generate --family NRF51 --application %app_hex% --application-version 0xFFFFFFFF --bootloader-version 0xFFFFFFFF --bl-settings-version 1 bootloader_settings.hex
    
    mergehex -m %bootloader_hex% %app_hex% bootloader_settings.hex -o nrf_bootloader_and_app.hex
    
    nrfjprog --reset --program %sd_hex% -f nrf51 --chiperase 
    nrfjprog --reset --program nrf_bootloader_and_app.hex -f nrf51
    

    One question still persists though. Is serial DFU planned for a future SDK?

Children
No Data
Related