Can I use printf of standard C library to send out data using UART on FX3 ?

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

cross mob
HamburgSteak
Level 2
Level 2
10 replies posted 25 sign-ins 10 sign-ins

Hi,

I'm developing some products using CYUSB3KIT-003(FX3) these days.

And I would like to use printf() functions of standard C library to send out data on UART.

Is it possible on this product? Is this development environment support this?

If supported, please let me know how to do that.

0 Likes
1 Solution
Meghavi
Moderator
Moderator
Moderator
250 replies posted 100 solutions authored 10 likes received

Hi,

It also depends on the use of printf() function. If you want to print floating variables then you can refer this: https://community.cypress.com/t5/Knowledge-Base-Articles/Printing-Floating-Values-using-FX3-SDK-KBA2... , otherwise CyU3PDebugPrint API can be used.

Regards

View solution in original post

0 Likes
4 Replies
Meghavi
Moderator
Moderator
Moderator
250 replies posted 100 solutions authored 10 likes received

Hi,

It also depends on the use of printf() function. If you want to print floating variables then you can refer this: https://community.cypress.com/t5/Knowledge-Base-Articles/Printing-Floating-Values-using-FX3-SDK-KBA2... , otherwise CyU3PDebugPrint API can be used.

Regards

0 Likes

Can I use printf() instead of CyU3PDebugPrint?
Actuallyl, I'am trying to develop debug module myself instead of using CyU3PDebug module. Is it possible in this platform?

0 Likes
Meghavi
Moderator
Moderator
Moderator
250 replies posted 100 solutions authored 10 likes received

Hi,

We haven't tried using printf () function as we already have CyU3PDebugPrint API. You can follow the KBA I pointed earlier and try at your end. Please let me know if you find issue while implementing it.

Regards

0 Likes

Thanks for your helping.

I've decided to use CyU3PDebugPrint API.

0 Likes