cancel
Showing results for 
Search instead for 
Did you mean: 

couldn't use sprintf

Priyaa
Associate II

how to solve this problem

Priyaa_0-1699460232008.pngPriyaa_1-1699460241856.png

 

1 ACCEPTED SOLUTION

Accepted Solutions
gbm
Lead III

Simply do what's written in the message - MCU settings:

gbm_1-1699462087302.png

 

 

My STM32 stuff on github - compact USB device stack and more: https://github.com/gbm-ii/gbmUSBdevice

View solution in original post

2 REPLIES 2
gbm
Lead III

Simply do what's written in the message - MCU settings:

gbm_1-1699462087302.png

 

 

My STM32 stuff on github - compact USB device stack and more: https://github.com/gbm-ii/gbmUSBdevice

This topic's been covered several times, you might have to fight if it keeps pulling the wrong libraries, not a fan of CubeIDE

Watch you have enough spaces separating parameters, and that compiler and linker accept them

https://community.st.com/t5/stm32cubeide-mcus/how-to-use-float-in-printf/m-p/323872

Also DON'T use 32-bit float's for global level lat/lon positioning, there aren't enough digits to carry the low order precision consistently or adequately. Use 64-bit doubles

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..