Hi,
this options is for compiling the newlib library with the support enabled not for enable it dynamically.
https://sourceware.org/newlib/README
`configure' options
===================
Here is a summary of the `configure' options and arguments that are
most often useful for building NEWLIB. `configure' also has several other
options not listed here.
.....
`--enable-newlib-io-long-long'
Enable long long type support in IO functions like printf/scanf.
Disabled by default, but many hosts enable it in configure.host.
The core simply link against the newlib nano library provided with the toolchain.
You can use the Print API for Long Long:
https://github.com/stm32duino/Arduino_C ... #L101-L106
Code: Select all
#ifdef SUPPORT_LONGLONG
void println(int64_t, uint8_t = DEC);
void print(int64_t, uint8_t = DEC);
void println(uint64_t, uint8_t = DEC);
void print(uint64_t, uint8_t = DEC);
#endif
Looking in the toolchain, it seems it is enabled,
STM32\tools\xpack-arm-none-eabi-gcc\9.2.1-1.1\arm-none-eabi\include\newlib-nano\newlib.h
Code: Select all
/* long long type support in IO functions like printf/scanf enabled */
/* #undef _WANT_IO_LONG_LONG */