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


mfloat-abi=soft appears on subdirs

Just reinstalled the workbench and updated plugin.xml to set mfloat-abi=hard as default. Ran an eclipse with -clean then cleaned the project and rebuilt. No matter what I do some subdirectories still use mfloat=abi=soft. I can’t see where they are picking the value up from.

So, the main project has:

-mcpu=cortex-m4 -mthumb -mfloat-abi=hard -mfpu=fpv4-sp-d16 -std=c99 -Dweak=attributeweak -Dpacked=attributepacked -

But Drivers/BSP has:

-mcpu=cortex-m4 -mthumb -mfloat-abi=soft -std=c99 -Dweak=attributeweak -Dpacked=attributepacked -DUSE_HAL_DRIVER -DSTM32F469xx -

Any help would be much appreciated.

Mamaged to figure it out.

In the .cproject I removed every folderInfo block where the resourcePath was set to one of the directories which wasn’t picking up the change to ‘hard’. It compliles now.


Hi Scopa !

when you said “updated plugin.xml to set mfloat-abi=hard as default”, what do you do exactly ?
Chris


Hello Chris

I modified plugin.xml as follows:

isDefault=”true” -> change to “false” where command=”-mfloat-abi=hard”

isDefault=”false” -> change to “true” where command=”-mfloat-abi=hard”

and restart eclipse with -clean.

Regards
scopa

France

Hi scopa,

Modifying the plugin.xml file (for plugin fr.ac6.mcu.ide I presume) is quite a bad idea for at least two reasons:

  1. Next time you update this plugin, you will have to edit plugin.xml again
  2. It changes the defaukt to hard-float for all MCUs, even those without an FPU


Normally, if you select the proper MCU when creating the project, the FPU selection will be adjusted automatically to hard-float if there is an FPU in the MCU, so editing the plugin.xml file should anyway be totaly useless.

Bernard (Ac6)


 

Newest Forum Posts

  1. STM32 MCU model shortlisting for Making RC remote by Palvish, 2025-07-07 15:05
  2. SPI on Nucleo_STMH533RE by royjamil, 2025-05-04 20:13
  3. SPI on Nucleo_STMH533RE by higginsa1, 2025-03-25 07:37
  4. SPI on Nucleo_STMH533RE by royjamil, 2025-03-23 11:31
  5. SPI on Nucleo_STMH533RE by higginsa1, 2025-03-23 09:33
  6. Configuring DMA for ADC in SW? by sam.hodgson, 2025-03-04 12:58
  7. Build a project in "release" mode by info@creosrl.it, 2025-02-20 18:12
  8. Build a project in "release" mode by info@creosrl.it, 2025-02-20 17:05
  9. Build a project in "release" mode by tang, 2025-02-20 10:36
  10. Build a project in "release" mode by info@creosrl.it, 2025-02-19 17:35

Last-Modified Blogs