/SW102_LCD_Bluetooth-bootloader

Primary LanguageCGNU General Public License v3.0GPL-3.0

SW102_Bootloader

Bootloader based on nrf5 secure bootloader example ported to SW102

Getting started with Nordic's Secure DFU bootloader

HowTo Generate DFU .zip packet

  • For DFU packet generation we use the Nordic command line tool nrfutil. It is a Python-based, so you need to:
  • Install Python 2 with pip. See here if you don't have pip with Python. Make also sure that the Python installation is in your path.
  • Install nrfutil from python using pip install nrfutil. To check for update, call pip install nrfutil --upgrade.
  • It is also a precompiled Windows executable available, then you don't need to install Python ;).
  • For creating a firmware update package, we use the command:
nrfutil pkg generate --application PATH_TO_HEX_FILE --key-file PATH_TO_PRIVATE_KEY --application-version 1 --hw-version 51 --sd-req 0x87 update_firmware.zip
  • For an explanation of the command line parameters, see Step C. Generate DFU .zip packet. in Nordics step by step guide.
  • For the acceptance rules for versions, please see the Nordic SDK documentation.