The toolchain version I am using is arm-gnu-toolchain-12.3.rel1-x86_64-arm-none-eabi and it is necessary to add the following to the linker parameters:
-u_printf_float
Otherwise, when using “%f”, the output will be an empty string.
Please open in the WeChat client.