How to download bootloader, apps and key at one time. ?
Please refer to this knowledge base, regarding the signing of firmware images:
To flash the bootloader, application and keys into a Z-Wave 700 series based device, take EFR32ZG14 as an example, you can simply put all the files in one folder, and then use Simplicity Commander in command-line mode and run the following commands.
commander flash OTW-bootloader-fg14-combined.s37 -d Cortex-M4 commander flash ZW_SerialAPI_Controller_7.14.3_298_EFR32ZG14_REGION_EU.hex -d Cortex-M4 commander flash --tokengroup znet --tokenfile manufacturer_encrypt.key --tokenfile manufacturer_sign.key-tokens.txt -d Cortex-M4
Also you may want to put all the commands above into one text file and save it as a .bat file, so you can execute them at once if needed.
You can erase the main Flash, bootloader and Lock Bits page before programming, and then reset the device.
commander device masserase -d Cortex-M4 commander device pageerase --region @bootloader -d Cortex-M4 commander device pageerase --region @lockbits -d Cortex-M4