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


Syntax Error: "(" unexpected

Hi,

I am trying to use SWSTM32 on Ubuntu (32 bit) 15.04. After generating a project in STMCube32MX I try to compile the project and I get the following error.

arm-none-eabi-gcc -mcpu=cortex-m4 -mthumb -mfloat-abi=hard -mfpu=fpv4-sp-d16 -Dweak=attributeweak -Dpacked=attributepacked -DUSE_HAL_DRIVER -DSTM32F401xE -IInc -IDrivers/STM32F4xx_HAL_Driver/Inc -IDrivers/STM32F4xx_HAL_Driver/Inc/Legacy -IDrivers/CMSIS/Include -IDrivers/CMSIS/Device/ST/STM32F4xx/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/haemish/stm32workspace/DoorUnlocker/DoorUnlocker/Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal.c”
/bin/sh: 1: Syntax error: “(” unexpected
Drivers/STM32F4xx_HAL_Driver/subdir.mk:54: recipe for target ‘Drivers/STM32F4xx_HAL_Driver/stm32f4xx_hal.o’ failed
make: *** Drivers/STM32F4xx_HAL_Driver/stm32f4xx_hal.o Error 2

I have done a little digging and it seems this may have something to do with the fact that I am running 32 bit ubuntu. I have tried installing these as suggested:
sudo apt-get install libc6:i386 lib32ncurses5
I noticed that the lib32ncurses5 does not exist but I did find libx32ncurses5.....I am hoping this is the same thing.

Does anyone have an idea what the problem is here?

Hi,

I think the “(” is a special character for the shell terminal.
Can you add double quote for the weak and the packed symbols values in the project properties > C/C++ General > Paths and Symbols > Symbols.

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


Kevin.


 

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