Translation - Japanese: EZ-BT WICEDモジュールのプログラミング方法– KBA223428- Community Translated (JA)
How can I program my application code into an EZ-BT™ WICED® module such as CYBT-343026-01?
Use the HCI-UART interface to download your application code to the EZ-BT WICED module for development or production. The methodology described in this KBA is valid on modules with base silicon devices CYW20706, CYW20707, or CYW20719. The CYBT-343026-01 module, which uses CYW20706, is used as the example for this KBA.
To download your application, follow the hardware setup and software procedure shown below. A recovery procedure may be required to download the application successfully if errors are encountered during programming. CYBT-343026-01 and CYBT-343026-EVAL are used as examples for illustration.
The HCI-UART interface available on an EZ-BT WICED module (CYBT-343026-01, for example) supports hardware flow control, so HCI-UART Tx/Rx/RTS/CTS signals must be connected to allow programming of the module. Ensure that HCI-UART TxD/RxD/RTS/CTS signal connections are accessible during the programming step (access can be on the host board, or as part of a customer-developed manufacturing programmer). Programming steps differ depending on your use case (module-only versus evaluation kit).
1. Programming using WICED Studio:
a) Download and install the latest version of WICED Studio. WICED Studio 5.x or before may have programming issues with certain EZ-BT modules.
b) Create a Make Target as follows and replace the “hello_sensor” part with your project’s name as shown below:
Note: The UART COM port shown in the above Make Target is an example. The specific COM port on your system may differ from this number. Replace the “8” of the COM port number of the USB-to-UART the bridge, which can be found in Device Manager on the PC. There will be two ports in Device Manager on PC. Confirm the right port before use. Typically, the COM port with the small number is the HCI UART port that is used for programming. Once your COM port is determined, replace COM8 in the above example with your specific COM port number.
c) Double-click the Make Target.
d) After a brief compile process, the Console output in the WICED Studio SDK should indicate success, as shown below:
2. Programming using the command line:
a) Download and install the latest version of WICED Studio. WICED Studio versions 5.x or earlier may have programming issues with certain EZ-BT modules.
Open the Command Prompt (cmd.exe) on your PC and install the platform file after navigating to the chip folder, such as follows:
\WICED\WICED-Studio-6.1\20706-A2_Bluetooth or …\20719-B1_Bluetooth
b) Copy the command line from the programming procedure, Section 1: “Programming Using WICED Studio”.
i. Create a Make Target in WICED Studio with the “VERBOSE=1” option as follows:
ii. After you double-click the Make Target, copy the command from the console window of WICED Studio (copy the text highlighted in a blue box in the following figure and remove all the text after the target hex file name).
c) Paste the command copied in the previous step in the command window as follows:
..\wiced_tools\ChipLoad\Win32\ChipLoad.exe -BLUETOOLMODE -REBAUDRATE 115200 -LAUNCHADDRESS 0x00000000 -PORT COM8 -BAUDRATE AUTO -MINIDRIVER platforms/CYBT_343026_EVAL/uart.hex -BTP platforms/CYBT_343026_EVAL/CYBT_343026_EVAL_SFLASH.btp -CONFIG build/hello_sensor-CYBT_343026_EVAL-rom-ram-Wiced-release/hello_sensor-CYBT_343026_EVAL-rom-ram-Wiced-release.hex
Pull SPI2_MOSI to GND
Pull SPI2_CS_N to VDD and
Pull UART_CTS to GND
Pull UART_CTS to GND
2. Power-cycle (turn OFF and then ON) the USB-to-UART bridge. After power cycling the USB-UART bridge, release the Recover signal. The module will now enter the recovery mode.
a) For CYW20706-based modules and CYW20719-based modules, double-click the Make Target for the application to build and download.
b) For CYBT-353027-02 module, use the command line in Section 2 with the following modifications:
3. Remove the -REBAUDRATE xxxxxxx option if it exists.
4. Add the -NODLMINIDRIVER option before -CONFIG xxxx option.
..\wiced_tools\ChipLoad\Win32\ChipLoad.exe -BLUETOOLMODE -LAUNCHADDRESS 0x00000000 -PORT COM11 -BAUDRATE AUTO -MINIDRIVER platforms/CYBT_353027_EVAL/uart.hex -BTP platforms/CYBT_353027_EVAL/CYBT_353027_EVAL_SFLASH.btp -NODLMINIDRIVER -CONFIG build/hello_sensor-CYBT_353027_EVAL-rom-ram-Wiced-release/hello_sensor-CYBT_353027_EVAL-rom-ram-Wiced-release.hex
The application should now boot properly on the module.