2Download the HCI loading tool onto CYW920829M2EVK-02
1. Connect CYW920829M2EVK-02 to the PC.
2. Install ModusToolbox™. By default, ModusToolbox™will be installed to
C:\Users\<windows_user>\ModusToolbox.
3. Open the command prompt, and change directory to
C:\Users\<windows_user>\ModusToolbox\tools_3.0\openocd\bin to access openocd.exe.
4. Enter the following command in the terminal and then press Enter. The HCI loading app will be
downloaded onto the CYW920829M2EVK-02 board.
openocd -s ../scripts -c "set ENABLE_ACQUIRE 0" -f interface/kitprog3.cfg
-f target/mxs40/cyw20829_common.cfg -c "init; reset init; reg pc [mrw
0xC004]; reg sp [mrw 0xC000]; resume; shutdown"
Note: Ensure the openocd command is in a single line when copying it from this document.
Note: If multiple CYW920829M2EVK-02 kits are plugged into the same PC, you must specify the CMSIS-
DAP serial number for each kit in the command:
openocd.exe -s ../scripts -c "set ENABLE_ACQUIRE o" -f
interface/kitprog3.cfg -f target/mxs40/cyw20829_common.cfg -c
"cmsis_dap_serial 0511146602070400" -c "init;reset init;reg pc
[mrw 0xc004]; reg sp [mrw 0xc000]; resume; shutdown"
5. Do the following to obtain the CMSIS-DAP serial number:
a) On the terminal, change directory to fw-loader\bin.
b) Enter the following command in the terminal to obtain the CMSIS-DAP serial number:
fw-loader.exe --device-list
The CMSIS-DAP serial number will be listed as follows. The following terminal output shows that two
CYW920829M2EVK-02 kits are connected: