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

USB superspeed peripherals Forum Discussions

XuWa_4652391
Level 2
Level 2
First like given Welcome!

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

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

View solution in original post

0 Likes
3 Replies
NoriakiT_91
Employee
Employee
100 likes received 50 likes received 25 likes received

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

if i use CDC virtual uart the configuration is same ?

0 Likes

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

0 Likes