cy4532 bootable project usage sprintf function cause error build

Announcements

Live Webinar: USB-C adoption. Simple & Cost-efficient solutions | April 18th @9am or 5pm CEST. Register now !

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

cross mob
Geromino
Level 5
Level 5
50 replies posted 25 replies posted 10 replies posted

cy4532 bootable project  usage sprintf function cause error build

include <stdio.h>

sprintf(debug_buff,"%2x",dpm_voltage);   in main file

error  build image

0 Likes
1 Solution
ShifangZ_26
Moderator
Moderator
Moderator
10 likes given 250 sign-ins 1000 replies posted

Hi ,

CY4531 downloadable project and boot project cannot support sprintf, since the lib is not included. Recommend you use UART for debug the example project.

Best Regards,

Lisa

View solution in original post

0 Likes
2 Replies
ShifangZ_26
Moderator
Moderator
Moderator
10 likes given 250 sign-ins 1000 replies posted

Hi ,

CY4531 downloadable project and boot project cannot support sprintf, since the lib is not included. Recommend you use UART for debug the example project.

Best Regards,

Lisa

0 Likes

Sprintf is function in stdio.h  I want use it and then send to uart the buffer

the purpose  usage  of sprintf is convert  number to string  all function stdio  like itoa   dont find any solution  to this problem

0 Likes