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


FPU settings for a project

So I am getting the following error:

arm-none-eabi-gcc: error: -mfloat-abi=soft and -mfloat-abi=hard may not be used together__
__

The thing is, I do have this in C/C++ Compiler->Miscellaneous settings: “-fmessage-length=0 -mfpu=fpv4-sp-d16 -mfloat-abi=hard”

Basically I do set it to “hard”, and also I checked compiler options below command field and it starts with this: “-mcpu=cortex-m7 -mthumb -mfloat-abi=hard -mfpu=fpv5-d16 ...... ”

So why is IDE confused and gives me such error?
Any other place to look for that soft setting and change it to hard?

quick update:

Inside Debug/XXX/YYY folder, I do find subdmir.mk file which actually does have this:
” arm-none-eabi-gcc -mcpu=cortex-m7 -mthumb -mfloat-abi=soft ....... ”

but question is, how did that soft setting propagate there since I turned it as “hard” setting all over the options in settings? How can I change it? (I do not think manually editing each subdir.mk file is right option)

France

Hi,

No you should not edit any subdir.mk file: it will be overwritten next time you build the project...

The reason you have this is that, for some reason, someone decided to set specific build settings for this folder. In the project explorer this folder should appear with a little pin on its top right corner.

The right way to go is to right click on the folder that causes the problem then select Properties and look at build settings to see if there is something that is really needed;

  • If this is true you should edit the Compiler settings to select the hard FPU ABI.
  • If there is no specific setting needed, you can close the properties dialog then right-click again on the folder and select Resource configurations... >> Reset to default. Then you will be proposed with all subdirectories that set folder specific options: just select the ones that should not and click reset; then your problem should be resolved.


Of course look at all your folders to see if there are other “pinned” folders...

Hope this helps,

Bernard (Ac6)


that folder indeed has some key looking sign on top right, i did reset to default for resource configuration and now it all works and compiles! cool, thanks

 

Newest Forum Posts

  1. reservation car service Seattle by Jamesprede, 2025-05-01 10:06
  2. Last day: drone bonus by Danielrug, 2025-04-19 16:55
  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. Insightful Perspectives on This Subject by davidsycle, 2025-03-04 05:45
  8. Build a project in "release" mode by info@creosrl.it, 2025-02-20 18:12
  9. Build a project in "release" mode by info@creosrl.it, 2025-02-20 17:05
  10. Build a project in "release" mode by tang, 2025-02-20 10:36

Last-Modified Blogs