Skip to main content
AP_040
Senior
December 22, 2018
Question

Float variables print on Debug UART

  • December 22, 2018
  • 1 reply
  • 754 views

With the help of STM32 CUBEMX generated basic code for IAR-EW and I have design a small code to print float variables on UART for debug purpose in STM32F413RH. This is working fine in IAR-EW but same things when I used in Atollic TrueStudio it is not working. So, is there any specific setting or add some plugins may required in TureStudio?. Can you help me on this.

    This topic has been closed for replies.

    1 reply

    AP_040
    AP_040Author
    Senior
    December 22, 2018

    Search on Google and found that it is require to following setting in TrueStudio.

    Under the project properties, find the C/C++ build->Settings->Tool Settings->C Linker->Miscellaneous->Other options option in the air: -u_printf_float. 

    After doing this it is working fine.

    Apart from this setting anything may required?.