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

cross mob

Is there a lightweight version of sprint() for the FX3 SDK? - KBA90398

lock attach
Attachments are accessible only for community members.

Is there a lightweight version of sprint() for the FX3 SDK? - KBA90398

Anonymous
Not applicable

Version: *A

Translation - Japanese: FX3 SDKのsprint()の軽量バージョンはありますか? - KBA90398 - Community Translated (JA)

Question:

The version of sprint() in the standard C library provided with the FX3 SDK needs 32KB of SRAM space. Is there a lightweight version of this function that is memory efficient?

Answer:

Yes. In case of FX3 SDK version 1.3, use the function CyU3PDebugStringPrint(). This function has the same call signature of the snprintf() function and has smaller memory footprint.

For older versions of the SDK (version 1.2.3 or lower), use the function given in the attached file. Its structure is similar to the sprint (not snprintf) function and can be modified as needed.

Attachments
0 Likes
440 Views
Contributors