/nrf52_bledfu_mac

OSX command line application for performing an nRF51 device firmware update

Primary LanguageObjective-C

#CocoaApplication to Scan BLE devices with DFU Service and to perform the DFU via BLE using iOSDFULibrary.framework Usage: nrf_bledfu_mac [help] or [scan] or [update -f <bin_file> -d <dat_file> -a <device_address>] or [update -z <zip_file> -a <device_address>]

OTA DFU update application for nrf5x MCUs. Visit https://github.com/astronomer80/nrf52_bledfu_mac for more information
Here a list of commands available:
help: Show this help
scan: Scan BLE devices already paired with Windows Settings
update -f < bin_file > -d < dat_file > -a <device_address>. bin_file is the file generated from the Arduino IDE. dat_file is the init packet generated by nrfutil application. device_address: is the address of the device returned using 'scan' command.
update -z < zip_file > -a <device_address>. zip_file is the archive generated by nrfutil application. device_address: is the address of the device returned using 'scan' command.
update -h < hex_file/bin_file > -a <device_address>. hex_file or the bin_file is generated by the Arduino IDE. nrfutil application generates the zip archive. device_address: is the address of the device returned using 'scan' command.

Optional parameter -v: Verbose mode. Adding this parameter as last shows more information during the update procedure.
Example:
nrf_bledfu_mac help
nrf_bledfu_mac scan
nrf_bledfu_mac update -z application.zip -a xxxxxxx
nrf_bledfu_mac update -f application.bin -d application.dat -a xxxxxxx
nrf_bledfu_mac update -h application.bin -a xxxxxxx -v
where xxxxxxx is the device address returned by scan command

TODO

  • Control the progress of the DFU and automatically close the app after DFU
  • Add nrfutil integration (to create the dat file from hex file)
  • Handle softdevice and bootloader update
  • BLE Dfu with key