cancel
Showing results for 
Search instead for 
Did you mean: 

USB EZ-PD Type-C

Geromino
Contributor II

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

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

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
Geromino
Contributor II

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