Loading...
 

Zephyr project on STM32

   Zephyr Workbench, a VSCode extension to manage Zephyr on STM32.
It enables users to easily create, develop, and debug Zephyr applications.
Main features:
  • Install host dependencies.
  • Import toolchain and SDK.
  • Create, configure, build and manage apps.
  • Debug STM32.
You can directly download it from the VSCode marketplace
For more details, visit the Zephyr Workbench

System Workbench for STM32


sprinf conversion of float is not working for STM32F7

Tunisia

Kevin is right :
“-u _printf_float” should be after “-specs=nano.specs”

Notes :
arm-none-eabi-gcc -mcpu=cortex-m3 -mthumb -mfloat-abi=soft -specs=nosys.specs -specs=nano.specs -Xlinker -u _sprintf_float -Xlinker -u _printf_float -T”../STM32F103CBTx_FLASH.ld” ....

  1. There is no “_sprintf_float”
  2. You do not need Xlinker options
  3. You should have only one -u _printf_float
  4. In (project properties > C/C++ Build > Setings > Tool Settings (TAB) > MCU GCC Linker > Miscellaneous > Linker flags),you should have ” -specs=nosys.specs -specs=nano.specs -u _printf_float”

Many thanks tarek,

My problem issue was that was adding the “-u_printf_float” option using the “ADD ICON” which put the required string into the TEXT BOX below ? ..
This was working ok on previous versions of Sytem32 Workbench ...but ... The Latest version doesn’t work like that anymore ... so what I did was to edit/replace the main string at the top ( -specs=nosys.specs -specs=nano.specs ) to what you have shown above .(-specs=nosys.specs -specs=nano.specs -u _printf_float). this worked OK ..
Thanks again for your help.biggrin