Skip to content
This repository has been archived by the owner on Apr 18, 2024. It is now read-only.

Commit

Permalink
Add command for dfu zip pkg generation
Browse files Browse the repository at this point in the history
  • Loading branch information
bihanssen committed Aug 14, 2018
1 parent cc07b6b commit 43a8e76
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion hex/sd_api_v3/build_v3_usb_win.bat
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,11 @@ copy _build\nrf52840_xxaa.hex %rootpath%\sdk\connectivity_%CONN_VERSION%_usb_for
@ECHO Merge hex
"c:\Program Files (x86)\Nordic Semiconductor\nrf5x\bin\mergehex.exe" -m _build\nrf52840_xxaa.hex %rootpath%\hex\sd_api_v3\s132_nrf52_3.1.0_softdevice.hex -o %rootpath%\sdk\connectivity_%CONN_VERSION%_usb_with_s132_3.1.hex

REM @ECHO Generate dfu zip package
REM nrfutil pkg generate --application connectivity_%CONN_VERSION%_usb_for_s132_3.hex --hw-version 52 --sd-req 0 --sd-id 0x0091 --debug-mode --softdevice s132_nrf52_3.1.0_softdevice.hex connectivity_%CONN_VERSION%_usb_dfu_pkg.zip

@ECHO Checking that the output files exist
@IF NOT EXIST %rootpath%\sdk\connectivity_%CONN_VERSION%_usb_for_s132_3.hex EXIT /b 1
@IF NOT EXIST %rootpath%\sdk\connectivity_%CONN_VERSION%_usb_with_s132_3.1.hex EXIT /b 1
@ECHO Success
REM @IF NOT EXIST %scriptpath%\connectivity_%CONN_VERSION%_usb_dfu_pkg.zip EXIT /b 1
@ECHO Success

0 comments on commit 43a8e76

Please sign in to comment.