Hi, you can use print_u64_dec() [1] instead, which is provided by the module fmt (USEMODULE += fmt).
The lack of 64 bit support is deliberate and consistent with other platforms, as full stdio compatibility is quite expensive in terms of ROM and RAM consumption. I'd personally happily trade in the newlib implementation for the avrlibc implementation, which in contrast to the newlibs nano stdio stack is truly is optimized for RAM and ROM consumption. And the existence and popularity of picolibc shows, that I'm not the only one with that opinion [2]: > 1. Replaced stdio. In place of the large and memory-intensive stdio stack > found in newlib, picolibc's stdio is derived from avrlibc's code. [...] Kind regards, Marian [1]: http://api.riot-os.org/group__sys__fmt.html [2]: https://keithp.com/blogs/picolibc/ On Tue, 28 Jul 2020 15:36:23 +0300 Lars Eggert <[email protected]> wrote: > Hi, > > is it possible to replace the ESP32 printf with one that supports 64-bit > types? > > cpu/esp32/ld/esp32.rom.nanofmt.ld says > > > Address table for printf/scanf family of functions in ESP32 ROM. > > These functions are compiled with newlib "nano" format option. > > As such, they don's support 64-bit integer formats. > > which is obviously not great. > > Thanks, > Lars
pgpCXeXiFkSIe.pgp
Description: OpenPGP digital signature
_______________________________________________ users mailing list [email protected] https://lists.riot-os.org/mailman/listinfo/users
