This source replaces the standard printf() function in the compiler C library with a ULTRA low resource version with a limited set of features and output types.

Features of nanoprintf include:
 • %s for string output
 • %c for single character
 • %d %i print the signed representation (- sign supported)
 • %u print the unsigned representation
 • %x and %X HEX output (8 digits uppercase)
 • %p pointer output with 0x prefix (8 digits uppercase)

Normal printf()/sprintf() implementations on ARM have been measure at ~25K of flash space, using nanoprint can restore ~24K of flas...

Sign Up For Full Access
Members gain full access to the Prosource library with dozens of source files for ARM Cortex, ATMega, PIC processors as well as desktop and embedded Linux systems. Solutions for bootloaders, Buildroot and Yocto targets as well as guided articles on embedded development to gain critical knowledge in new systems and speed up development.
Files size: 4.19 KB
RAM usage:40 bytes (uint32_t [10])
Avg Flash:624 bytes
Source #1 - Members Only
Source #2 - Members Only