cancel
Showing results for 
Search instead for 
Did you mean: 

USB Superspeed Peripherals

XuWa_4652391
New Contributor II

Hi team,

i want usb uart to send binary data, i tried CyU3PDebugPrint lile CyU3PDebugPrint(4, mybinarybuff);

but all the data after 0 byte will be remove. can somebody help me ?

0 Likes
1 Solution
XuWa_4652391
New Contributor II

I rewrite the CyU3PDebugPrint funtion ,remove the MyDebugSNPrint function, solve the problem.

View solution in original post

0 Likes
3 Replies
NoriakiT_91
Employee

The function CyU3PDebugPrint() accepts a zero-terminated string as the 2nd argument.  So, a zero character cannot be sent with this function.

There is a function CyU3PUartTransmitBytes() to send a data block in any length.

GS004816.png

Please refer the "API Reference Guide" document form more details.

Regards,

Noriaki

XuWa_4652391
New Contributor II

if i use CDC virtual uart the configuration is same ?

0 Likes
XuWa_4652391
New Contributor II

I rewrite the CyU3PDebugPrint funtion ,remove the MyDebugSNPrint function, solve the problem.

View solution in original post

0 Likes