I am working on an application using the Nordic BSP (v16) that I’ve recently implemented the secure bootloader in. When using the secure bootloader it is necessary to generate a setting page that needs to be flashed to the device in addition to the firmware. Generating this page file is done by calling nrfutil and looks similar to the below command:
nrfutil settings generate --family NRF52840 --application client\pca10056\blank\armgcc\_build\nrf52840_xxaa.hex --application-version 0x01010101 --bootloader-version 1 --bl-settings-version 2 --app-boot-validation VALIDATE_ECDSA_P256_SHA256 --key-file priv.pem settings.hex
The settings page can optionally be merged with the firmware hex to be flashed in one pass.
mergehex -m client\pca10056\blank\armgcc\_build\nrf52840_xxaa.hex settings.hex -o dfu_client.hex
Is this something that could be automated either by utilizing custom build steps or some other mechanism in the build and flash process? It would be nice to have the ability to modify the application version perhaps by user input, but manually editing wouldn’t be too bad (maybe a define in the project?)
Thanks.
-
This topic was modified 4 years, 6 months ago by grindstaffp.