一、通过hex生成dfu升级所需的zip文件 nrfutil pkg generate --application nrf52832_xxaaV3.hex --application-version 3 --hw-version 52 --sd-req 0x8c --key-file priv.pem nrf52832_xxaaV3.zip 1. 二、生成setting文件 nrfutil settings generate --family NRF52 --application nrf52832_xxaaV3.hex ...
5.1 创建固件包 使用nrfutil pkg generate命令可以生成固件包。在命令中,你需要指定输入二进制文件、输出路径和设备类型等信息。 nrfutil pkg generate --hw-version52--sd-req 0xB8--app<path_to_your_app>.hex --app-version1.0--out-file.zip 1. 这里需要替换<path_to_your_app>.hex和.zip为你具体的文...
--key-file 表示签名用的私钥文件。--sd-req表示老固件运行在哪个版本softdevice上,这个值一定要跟自己的softdevice相匹配,否则无法升级,各个softdevice版本ID信息可以通过命令“nrfutil pkg generate --help”获得,如下为当前所有softdevice ID列表: 10) 将“new_app.zip”拷贝到手机上。安卓和苹果手机都可以通过微信...
验证命令行中是否正确输入了nrfutil-pkg.exe的命令: 确保在命令行中输入的命令格式正确。通常,如果你已经正确设置了环境变量,可以直接输入nrfutil-pkg(不需要.exe扩展名,除非在特定情况下)。 例如,如果你想使用nrfutil-pkg子命令来生成一个DFU包,命令可能是这样的: shell nrfutil-pkg generate --application my_app...
nrfutil pkg generate --debug-mode --application app.hex --key-file key.pem app_dfu_package.zip When using debug mode you don't need to specify versions for hardware and firmware, so you can develop without having to worry about versioning your application. If you want to generate a packag...
nrfutil pkg generate --hw-version 52 --sd-req 0 --application-version 0x01020101 --application nrf52840_xxaa.hex --key-file ../priv.pem --app-boot-validation VALIDATE_ECDSA_P256_SHA256 app_dfu_package.zip --zigbee True --zigbee-manufacturer-id 0xCAFE --zigbee-image-type 0x1234 --zig...
(up to -v -v -v -v). -o, --output <filename> Log output to file --helpShow this message andexit. Commands: keys Generate and display private and public keys. pkg Display or generate a DFU package (zip file). settings Generate and display Bootloader DFU settings. version Display ...
nrfutil pkg generate --hw-version 52 --sd-req 0x8C --application ./path/to/application.hex --application-version 1 --key-file ./path/to/private.key ./path/to/package.zip 1. 这个命令会生成一个.zip格式的固件文件,其中包含了我们指定的应用程序和必需的软件包。在命令中,--hw-version指定了...
nrfutil pkg generate --hw-version 52 --sd-req 0 --application-version 0x01020101 --application nrf52840_xxaa.hex --key-file ../priv.pem --app-boot-validation VALIDATE_ECDSA_P256_SHA256 app_dfu_package.zip --zigbee True --zigbee-manufacturer-id 0xCAFE --zigbee-image-type 0x1234 --zig...