CyU3PDebugPrint print one byte value, example, the print result as format 01 02 05 00, it occupy two digital

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

cross mob
Peya_4162826
Level 2
Level 2
First like received

uint8_t buffer[512]={0};

CyU3PDebugPrint(4,"%02x",systemtempbuffer[0]);

the print result is s't'range.

0 Likes
1 Solution
SrinathS_16
Moderator
Moderator
Moderator
1000 replies posted 750 replies posted 500 replies posted

Hello,

The CyU3PDebugPrint() API does not have support for precision modifiers as in C printf() statement. Please refer to the API details on the FX3 API Guide.

Best regards,

Srinath S

View solution in original post

0 Likes
2 Replies
YangyangC_06
Employee
Employee
750 replies posted 500 replies posted 250 replies posted

You may provide the wrong code, please check again

uint8_t buffer[512]={0};

CyU3PDebugPrint(4,"%02x",systemtempbuffer[0]);

0 Likes
SrinathS_16
Moderator
Moderator
Moderator
1000 replies posted 750 replies posted 500 replies posted

Hello,

The CyU3PDebugPrint() API does not have support for precision modifiers as in C printf() statement. Please refer to the API details on the FX3 API Guide.

Best regards,

Srinath S

0 Likes