-
Notifications
You must be signed in to change notification settings - Fork 12
/
03_create_fw_zip_package.bat
34 lines (26 loc) · 1.01 KB
/
03_create_fw_zip_package.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
@echo off
:: # Check to make sure nrfutil is installed before moving on
WHERE >nul 2>nul nrfutil
IF %ERRORLEVEL% NEQ 0 (
ECHO "nrfutil was not found in PATH, please install using pip install"
goto :end
)
SET S132=s132_nrf52_6.0.0_softdevice.hex
SET APPLICATION_HEX=app.hex
echo "## Looking to make sure %S132% is present in folder"
if not exist %S132% (
echo "#### s132 hex file does not exist! Please copy this file into the folder and try again!"
goto :end
)
echo.
echo "## Looking to make sure %APPLICATION_HEX% is present in folder"
if not exist %APPLICATION_HEX% (
echo "#### app.hex file does not exist! Please copy a application .hex file into the folder, rename it, and try again!"
goto :end
)
echo.
echo "## Creating a FW.zip package that can be used to update the FW on the DK"
nrfutil pkg generate --application app.hex --application-version 1 --application-version-string "1.0.0" --hw-version 52 --sd-req 0xA8 --sd-id 0xA8 --softdevice s132_nrf52_6.0.0_softdevice.hex --key-file private.pem FW.zip
echo.
:end
pause