Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

Bluetooth SDK Forum Discussions

KaNa_3391246
Level 5
First comment on KBA 5 solutions authored 250 sign-ins
Level 5

I have tried BLE_Mesh_SensorTemperature_mainapp on CYBT-213043-MESH kit.

I could confirm that WICE_BT_TRACE message is appeared on PUART(at USB-UART port of PC).

However I would like to use PUART in another role.

Is it possible to output WICE_BT_TRACE message to HCI UART and check it in the IDE window?

If possible, please let me know how to do it.

[Tool condition]

- ModusToolbox ver1.1.0

- BT SDK 1.3

0 Likes
1 Solution
SheetalJ
Moderator
Moderator 750 replies posted 500 likes received 500 replies posted
Moderator

Hi Kazuhito-san,

1. Yes HCI UART is used for FW downloading. So while programming, do not open the HCI UART in teraterm or putty. After downloading, open HCI COM port and you should be able to see the logs.

2. Just put below API in your code as shown in snapshot-

wiced_set_debug_uart(WICED_ROUTE_DEBUG_TO_HCI_UART);

and change the baudrate to 115200.

pastedImage_0.png

Note that after resetting you wont be able to see logs on HCI UART because device will enter in recovery mode.

View solution in original post

0 Likes
3 Replies
SheetalJ
Moderator
Moderator 750 replies posted 500 likes received 500 replies posted
Moderator

Hi KaNa_3391246​,

Yes you can use so by using wiced_set_debug_uart( WICED_ROUTE_DEBUG_TO_HCI_UART );

Please refer wiced_bt_trace.h for more info.

This related thread might be helpful: CYBT-343026-EVAL: how to use WICED_BT_TRACE outputs for debug purposes?

KaNa_3391246
Level 5
First comment on KBA 5 solutions authored 250 sign-ins
Level 5

Hi Sheetal-san,

Thank you for your response. Could you tell me more specifically?

1) Where does the WICE_BT_TRAC message(routed HCI UART) appear in the ModusToolbox window?

   Please point it in the bellow screenshot.

mtw_screenshot.png

   I think HCI UART will be used for FW download.

   I expect that WICE_BT_TRAC message(routed HCI UART) will be appeared in the ModusToolbox window seamlessly after downloading.

2) Which source code file should I touch to fix 'wiced_set_debug_uart(WICED_ROUTE_DEBUG_TO_HCI_UART)'?

   I am using the demo application: BLE Mesh Temperature Sensor.

Best regards,

Kazuhito Natori

0 Likes
SheetalJ
Moderator
Moderator 750 replies posted 500 likes received 500 replies posted
Moderator

Hi Kazuhito-san,

1. Yes HCI UART is used for FW downloading. So while programming, do not open the HCI UART in teraterm or putty. After downloading, open HCI COM port and you should be able to see the logs.

2. Just put below API in your code as shown in snapshot-

wiced_set_debug_uart(WICED_ROUTE_DEBUG_TO_HCI_UART);

and change the baudrate to 115200.

pastedImage_0.png

Note that after resetting you wont be able to see logs on HCI UART because device will enter in recovery mode.

0 Likes