STM32 sprintf didn't work with the type of double #2823
ericzhang-debug
started this conversation in
Alerts
Replies: 2 comments
-
I suspect this may be a problem with the STM32 board package as it works fine on the ESP32. This is the test sketch:
The following appears on the display and in the serial monitor window. Check the serial output in your software environment is correct: Number : 60.32 |
Beta Was this translation helpful? Give feedback.
0 replies
-
I just had a look in the IDE and it appears you have to chose the right runtime library to get printf: |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I tried the sprintf to format a temp[30] with a double number , but it only showed the string but no number.
It only shows: Number :
Board:Stm32f103c8t6
platform:stm32duino
all of my packages are updated to the least.
How can I solve this problem?
Thank you very much !
Beta Was this translation helpful? Give feedback.
All reactions