- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I run the GpioApp example firmware on FX3 demo board CYUSB3KIT-003, the SuperSpeed Explorer Kit. I added only one function to test the UART debugging at line 242.
CyU3PDebugPrint (4, "high, returned = %d\n",apiRetStatus);
Please see the attached code.
USB2.0 microB on demo board is connected to PC. The debugging message print both intended message and some leading garbage characters.
How to remove the garbage leading character?
Solved! Go to Solution.
- Labels:
-
ispn:38621:1:0
-
l1:314:1:0
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
In the CyFxDebugInit() function block, please add the below code after the CyU3PDebugInit() API call.
CyU3PDebugPreamble(CyFalse);
When the above API (CyU3PDebugPreamble() API) is not used, FX3 sends an additional 8 bytes data as preamble onto the UART. Out of these 8 bytes, only the printable characters get displayed on the Terminal while the rest may be seen as white spaces/garbage. This is the reason why additional garbage characters were seen on the terminal.
You can refer to the cyu3debug.c file in the FX3 SDK firmware source to understand more about the CyU3PDebugPrint() and the use of CyU3PDebugPreamble() APIs
Best regards,
Srinath S
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
The firmware that you have shared is fine and is working at my end. Can you please check if the same issue occurs even with other terminal such as TeraTerm/HyperTerm?
Best regards,
Srinath S
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The sample code I attached in last reply uses UART port on GPIO48 and GPIO49. But it has the same printing extra " issue with using micro B port on demo board.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
In the CyFxDebugInit() function block, please add the below code after the CyU3PDebugInit() API call.
CyU3PDebugPreamble(CyFalse);
When the above API (CyU3PDebugPreamble() API) is not used, FX3 sends an additional 8 bytes data as preamble onto the UART. Out of these 8 bytes, only the printable characters get displayed on the Terminal while the rest may be seen as white spaces/garbage. This is the reason why additional garbage characters were seen on the terminal.
You can refer to the cyu3debug.c file in the FX3 SDK firmware source to understand more about the CyU3PDebugPrint() and the use of CyU3PDebugPreamble() APIs
Best regards,
Srinath S