Getting Started with EZ-BT WICED Modules
Document Number: 002-23400 Rev. **
43
Code 35.
spp.c
: Configure Sleep Mode
▪
Disable either or both seconds timer and fine timer based on application requirements in
wiced_bt_app_start_timer
. This will ensure that the module is not waking up from sleep at regular intervals.
▪
Disable traces in
makefile.mk
if the application does not require UART prints over a COM port.
Code 36.
makefile.mk
: Disable Trace
#C
= -DWICED_BT_TRACE_ENABLE
▪
It is recommended to do one of the following if the application does not require UART communication:
o
Comment out
wiced_transport_init( &transport_cfg );
or
o
Configure switch elements of HCI_UART (SW4) and PUART(SW5) to OFF position. Modify the state of
HCI_UART(SW4) switches to ON position when programming CYBT-343026 EVAL.
7.5
Part 3: Program the Module
This section details the steps required to program the EZ-BT WICED Evaluation Board. The CYBT-343026-01 module
on the CYBT-343026-EVAL evaluation board includes a UART-based bootloader in the onboard chipset ROM, and
therefore does not require an external programmer of any kind.
Note:
The source project for this design is available on this application n
ote’s webpage.
7 . 5 . 1
H o s t U AR T I n t e r f a c e S e l e c t i o n a n d P r e p a r a t i o n
Host access to the HCI UART interface required for programming is available using either the built-in USB-to-UART
Bridge or the 6-pin J1 header on the evaluation board. The HCI UART switch (four-position DIP switch) controls whether
the USB-to-UART Bridge is connected to the HCI UART or pins are isolated from making connections with the USB-
UART IC on the board. The PUART switch (four-position DIP switch) controls whether the USB-to-UART Bridge is
connected to Peripheral UART or pins are isolated from making connections with USB-UART IC on the board.
7 . 5 . 2
C o m p i l i n g a n d D o w n l o a d i n g i n t o t h e M o d u l e
Now that you have completed the code updates and prepared the programming interface, all that remains is to compile
and flash the firmware image into the target device. To do this, simply double-click on the make target that you defined
previously (
snip.bt.spp_custom-CYBT_343026_EVAL download
).
After a brief compile process, the console output in WICED Studio should indicate success, as shown in
Figure 18. Programming the Firmware
If you do not see this success message, ensure that you have correctly connected and configured the programming
interface from the host as described in the previous sections, and try downloading again. If it continues to fail, refer to
the following recovery steps.
case
BTM_ENABLED_EVT
:
application_init();
wiced_sleep_config(TRUE, null, null);
WICED_BT_TRACE(
"Free mem:%d"
, wiced_memory_get_free_bytes());
break
;