Debugging using Segger Jlink

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

cross mob
jknight
Level 1
Level 1
First reply posted First question asked Welcome!

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

0 Likes
1 Solution
Charles_Lai
Moderator
Moderator
Moderator
500 replies posted 250 solutions authored 250 sign-ins

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

View solution in original post

0 Likes
2 Replies
jknight
Level 1
Level 1
First reply posted First question asked Welcome!

Also, if there is a way to bypass JLink and to debug using only the PUART terminal, I would be fine with that.

0 Likes
Charles_Lai
Moderator
Moderator
Moderator
500 replies posted 250 solutions authored 250 sign-ins

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

0 Likes