- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I have the CYW20706 BLE board, and I am having trouble debugging using the Segger JLink edu.
On the hardware user guide, it says that I can set up the UART for SWD debugging by plugging the JLink TMS (SWDIO) and the TCK (SWDCK) into the BT_UART_RXD and the BT_UART_TXD respectively.
But when I do this, I still receive this error:
J-Link GDB Server failed:
Could not connect to target. Please check if target is powered and if ribbon cable is plugged properly.
For more details, see the JLinkGDBServerCLExe console.
I plugged in the VTref into the 3.3V supply and GND into ground.
Is there anything else that I need to do to configure the UART? I included the
uart_SetBaudrate(0, 0, 3000000); //and
wiced_set_debug_uart(WICED_ROUTE_DEBUG_TO_HCI_UART );
into the program.
Thank you
Solved! Go to Solution.
- Labels:
-
Other Technologies General
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
wiced_set_debug_uart(WICED_ROUTE_DEBUG_TO_HCI_UART ) only routes readable debug messages from PUART to HCI UART.
Normally we don't need JLink to debug CYW20706 (though we could use it). Downloading FW via HCI UART and analyzing PUART log output would be enough.
If you need step-by-step hardware debugging using JLink, please see:
https://www.cypress.com/file/462726/download
https://cypresssemiconductorco.github.io/btsdk-docs/BT-SDK/WICED-Hardware-Debugging.pdf
Best regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Also, if there is a way to bypass JLink and to debug using only the PUART terminal, I would be fine with that.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
wiced_set_debug_uart(WICED_ROUTE_DEBUG_TO_HCI_UART ) only routes readable debug messages from PUART to HCI UART.
Normally we don't need JLink to debug CYW20706 (though we could use it). Downloading FW via HCI UART and analyzing PUART log output would be enough.
If you need step-by-step hardware debugging using JLink, please see:
https://www.cypress.com/file/462726/download
https://cypresssemiconductorco.github.io/btsdk-docs/BT-SDK/WICED-Hardware-Debugging.pdf
Best regards