how send binary data by uart

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

cross mob
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
NoriTan
Employee
Employee
25 sign-ins 5 questions asked 10 sign-ins

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