- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
Note that after resetting you wont be able to see logs on HCI UART because device will enter in recovery mode.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
Note that after resetting you wont be able to see logs on HCI UART because device will enter in recovery mode.