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

USB superspeed peripherals

yaqi_4776616
Level 4
50 sign-ins 25 replies posted 25 sign-ins
Level 4

Hello
I'm having some problems debugging with jlnk
1、How to achieve uart printing when using jlink for debugging
2、When debugging, the program does not stop when it encounters a breakpoint, and the breakpoint is invalid
I hope you can help me answer these two questions, thank you very much!

0 Likes
1 Solution
JayakrishnaT_76
Moderator
Moderator First question asked 1000 replies posted 750 replies posted
Moderator

Hello,

Please find my comments for your questions below:

1. The procedure for achieving UART prints is same even if JLINK is used/not used for debugging. However, there are chances for occurrence of garbage data along with the UART prints. Please refer to the following KBA which mentions a workaround to fix this issue:

https://community.cypress.com/t5/Knowledge-Base-Articles/FX3-UART-Prints-Garbage-Data-During-JTAG-De...

2. I find that another thread is already created for the same issue. The link to the duplicate thread is given below:

https://community.cypress.com/t5/USB-Low-Full-High-Speed/CX3-JLINK-DEBUGGING/td-p/269347

I have already shared my comments regarding this issue in the thread mentioned above. Let us carry forward our discussions related to this issue in the same thread.

Best Regards,
Jayakrishna

View solution in original post

0 Likes
5 Replies
JayakrishnaT_76
Moderator
Moderator First question asked 1000 replies posted 750 replies posted
Moderator

Hello,

Please find my comments for your questions below:

1. The procedure for achieving UART prints is same even if JLINK is used/not used for debugging. However, there are chances for occurrence of garbage data along with the UART prints. Please refer to the following KBA which mentions a workaround to fix this issue:

https://community.cypress.com/t5/Knowledge-Base-Articles/FX3-UART-Prints-Garbage-Data-During-JTAG-De...

2. I find that another thread is already created for the same issue. The link to the duplicate thread is given below:

https://community.cypress.com/t5/USB-Low-Full-High-Speed/CX3-JLINK-DEBUGGING/td-p/269347

I have already shared my comments regarding this issue in the thread mentioned above. Let us carry forward our discussions related to this issue in the same thread.

Best Regards,
Jayakrishna
0 Likes
yaqi_4776616
Level 4
50 sign-ins 25 replies posted 25 sign-ins
Level 4

Hello
Where can I see the print information when I use jlink debbuging, do I need to follow other software?

yaqi_4776616_0-1615272457011.png

Best Regards,

Yaqi

 

0 Likes
JayakrishnaT_76
Moderator
Moderator First question asked 1000 replies posted 750 replies posted
Moderator

Hello Yaqi,

The UART prints can be seen using Applications like Tera Term on Windows. 

Best Regards,
Jayakrishna
0 Likes
yaqi_4776616
Level 4
50 sign-ins 25 replies posted 25 sign-ins
Level 4

Hello Jayakrishna,

I have downloaded Tera Term, but I don't know how to set up the connection to make it work, can you tell me the exact steps to set it up?

Best Regards,

Yaqi

0 Likes
JayakrishnaT_76
Moderator
Moderator First question asked 1000 replies posted 750 replies posted
Moderator

Hello Yaqi,

Before opening teraterm, the UART lines of the device (CX3) should be connected to the PC using a USB-UART bridge device. I hope you have done this. If not, please do this.

After opening teraterm, follow the steps given below:

1. A new connection popup will open up as shown below:

JayakrishnaT_76_0-1615366912417.png

2. Select Serial and select the appropriate COM Port using the drag down.

3. After this, go to Setup->Serial Port. This will open a new popup as shown below:

JayakrishnaT_76_1-1615367011983.png

4. Change the speed to 115200 and select New connection. 

This should give you the prints on teraterm.

Best Regards,
Jayakrishna