![Cypress EZ-BT WICED CYBT-343026-01 Скачать руководство пользователя страница 12](http://html1.mh-extra.com/html/cypress/ez-bt-wiced-cybt-343026-01/ez-bt-wiced-cybt-343026-01_getting-started_2705923012.webp)
Getting Started with EZ-BT WICED Modules
Document Number: 002-23400 Rev. **
12
Double-clicking on a make target will trigger the build process for that target. You can also use the
F9
keyboard shortcut
in the Eclipse IDE to rebuild the last selected make target.
The p
ath and project name are separated by a dot (“.”). The project name and target platform are separated by a dash
(“–”), while the name/target and all subsequent operational arguments are separated by spaces. Possible arguments
are described in the output from the “help” target, which you can build at any time to see details. The output from this
target is reproduced here for quick reference:
Any single project may have one or more defined make targets. For instance, one target might perform only the compile
step, while another performs both compile and download, and another may explicitly provide the programming COM
port to avoid the serial port detection step if the port is known.
Here are some examples of make targets that come with the SDK:
▪
snip.bt.spp_custom-CYBT_343026_EVAL download
▪
snip.hal.pwm-CYBT_343026_EVAL download
▪
demo.hello_sensor-CYBT_343026_EVAL download
Usage: make <target> [TRANSPORT=SPI] [FREQ=24Mhz|40Mhz] [download] [recover] [DEBUG=1|0] [VERBOSE=1] [UART=yyyy] [JOBS=x]
[PLATFORM_NV=EEPROM|SFLASH] [BT_DEVICE_ADDRESS=zzzzzzzzzzzz|random] [OTA_FW_UPGRADE=1] [B49=1] [LEGACY_BOARD=1]
<target>
One each of the following mandatory [and optional] components separated by '-'
* Application (Apps in sub-directories are referenced by subdir.appname)
* Hardware Platform (CYBT_343026_EVAL CYW920706WCDEVAL)
* [BASE location] (BASErom BASEram BASEflash)
* [SPAR location] (SPARrom SPARram SPARflash)
* [Toolchain] (RealView Wiced CodeSourcery)
[TRANSPORT]
HCI transport interface (default is UART)
[FREQ]
Crystal frequency on the reference board (24Mhz/40Mhz)
[download]
Download firmware image to target platform
[build]
Builds the firmware and OTA images.
[recover]
Recover a corrupted target platform
[library]
Make a library of the app objects instead of fully linking it.
[DEBUG=1|0]
Enable or disable debug code in application. When DEBUG=1, watchdog will be disabled,
sleep will be disabled and the app may optionally wait in a while(1) for the debugger
to connect
[VERBOSE=1]
Shows the commands as they are being executed
[JOBS=x]
Sets the maximum number of parallel build threads (default=4)
[UART=yyyy]
Use the uart specified here instead of trying to detect the Wiced-BT device.
This is useful when you are working on multiple BT devices simultaneously.
[PLATFORM_NV=EEPROM|SFLASH]
The default non-volatile storage. Default is EEPROM.
[BT_DEVICE_ADDRESS=zzzzzzzzzzzz|random]
Use the 48-bit Bluetooth address specified here instead of the default setting from
platform/*/*.btp file. The special string 'random' (without the quotes) will generate
a random Bluetooth device address on every download.
[OTA_FW_UPGRADE]
Applications which want to upgrade firmware via OTA, have to be downloaded through installer using this option.
[B49=1]
Set B49=1 if using the B49 platform board
[LEGACY_BOARD=1]
Set LEGACY_BOARD=1 if using boards other than CYW920706WCDEVAL(i.e., if using older boards such as
BCM920706V2_EVAL/CYW92070xV3)
Notes
* Component names are case sensitive
* 'Wiced', 'SPI', 'UART' and 'debug' are reserved component names
* Component names MUST NOT include space or '-' characters
* Building for release is assumed unless '-debug' is appended to the target
* Application/target names must begin with an alphabetic character
Example Usage
Build for Release
make demo.hello_sensor-CYW920706WCDEVAL build
Build, Download and Run using the default programming interface
make demo.hello_sensor-CYW920706WCDEVAL download
Build, Download and Run using specific UART port
make demo.hello_sensor-CYW920706WCDEVAL download UART=COMx
Build, Download to Serial Flash and Run using default programming interface
make demo.hello_sensor-CYW920706WCDEVAL download PLATFORM_NV=SFLASH
Clean output directory