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


Hello
Please, may you provide the logs from the console tab?

Hello Vetch,

here you go:


13:34:58 **** Build of configuration Debug for project 01_GPIO ****
make all
Building file: /home/konrad/ARM_Toolchain/STM32_worksapce/01_GPIO/Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal.c
Invoking: MCU GCC Compiler
/home/konrad/ARM_Toolchain/STM32_worksapce/01_GPIO/SW4STM32/01_GPIO/Debug
arm-none-eabi-gcc -mcpu=cortex-m4 -mthumb -mfloat-abi=hard -mfpu=fpv4-sp-d16 -Dweak=attributeweak -Dpacked=attributepacked -DUSE_HAL_DRIVER -DSTM32F411xE -I”/home/konrad/ARM_Toolchain/STM32_worksapce/01_GPIO/Inc” -I”/home/konrad/ARM_Toolchain/STM32_worksapce/01_GPIO/Drivers/STM32F4xx_HAL_Driver/Inc” -I”/home/konrad/ARM_Toolchain/STM32_worksapce/01_GPIO/Drivers/STM32F4xx_HAL_Driver/Inc/Legacy” -I”/home/konrad/ARM_Toolchain/STM32_worksapce/01_GPIO/Drivers/CMSIS/Device/ST/STM32F4xx/Include” -I”/home/konrad/ARM_Toolchain/STM32_worksapce/01_GPIO/Drivers/CMSIS/Include” -Os -g3 -Wall -fmessage-length=0 -ffunction-sections -c -fmessage-length=0 -MMD -MP -MF”Drivers/STM32F4xx_HAL_Driver/stm32f4xx_hal.d” -MT”Drivers/STM32F4xx_HAL_Driver/stm32f4xx_hal.o” -o “Drivers/STM32F4xx_HAL_Driver/stm32f4xx_hal.o” “/home/konrad/ARM_Toolchain/STM32_worksapce/01_GPIO/Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal.c”
/bin/sh: 1: Syntax error: “(” unexpected
make: *** Drivers/STM32F4xx_HAL_Driver/stm32f4xx_hal.o Error 2
Drivers/STM32F4xx_HAL_Driver/subdir.mk:57: recipe for target ‘Drivers/STM32F4xx_HAL_Driver/stm32f4xx_hal.o’ failed

13:34:58 Build Finished (took 144ms)


Please, may you check the following symbols :
- Right-click on the project >> Properties >> C/C++ Build >> Settings >> Tools Settings tab >> MCU GCC Compiler >> Symbols
- As you are not a Windows user, add ’ or ” for the weak and packed symbols. For example:

 
__weak='__attribute__((weak))'
__packed='__attribute__((__packed__))'

Thank you very much for that!
It solved the problem!



Yes, many thanks!

This is a serious bug in the NEW version of Cube MX. They say they will fix it ASAP and the fix is 2 lines of code, but as of yet they haven’t fixed it.

Hallo,

I had the same problem. I have transferred project from one machine to another machine. Both on Windows7 system. On target system was necessary to update sybol definition and add ” around attributes definitions.

I don’t understand why the origin system compile the project correctly?


Hi Tomas_Z
On Windows there is no real issue. You are right : the projects are compiled correctly, but Eclipse detects some syntax error (minor) due to the double quote usage.
The main issue occurs on Ubuntu or OS-X while the double quotes are missing then the projects are not compiled correctly.



Hello,

I have downloaded the firmware”en.stm32cubef7_v1-16-0” from ST.com to run a “STemWin” project under “demonstration” folder for “STM32F769I-Discovery”.

While Build project i get the following error
Middlewares/USBH_Library/Core/subdir.mk:27: recipe for target ‘Middlewares/USBH_Library/Core/usbh_core.o’ failed
make: *** Middlewares/USBH_Library/Core/usbh_core.o Error 2

Any one help me running this demo programme in STM32F769I disco board successfully.

Remove bracket ) from the path.
Then compile it will run without error.

HI...
i am facing same issue but i can not solve...
how to remove that bracket in path...
Kindly explain details...
i did not get that path.. that why i asking ...
pls reply...



Thanks Reg,
Siranjeevi