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


subdir.mk failure. Unexpected "("

Please help out a noob. I keep getting this error and I have no cleu what to do.

00:09:50 **** Incremental Build of configuration Debug for project Sys89 ****
make all
Building file: ../Src/dma.c
Invoking: MCU GCC Compiler
c:/ac6/systemworkbench/plugins/fr.ac6.mcu.externaltools.arm-none.win32_1.15.0.201708311556/tools/make/sh: syntax error: unexpected “(”
Src/subdir.mk:52: recipe for target ‘Src/dma.o’ failed
make: *** Src/dma.o Error 2

00:09:52 Build Finished (took 1s.819ms)

I have had the same problem for days. Would love to get some responses!
I’ve tried addind the ‘’ around weak and packed as explained here to no avail

http://www.openstm32.org/forumthread1636Question

EDIT:
found something usefull here:

https://community.st.com/thread/34684-stm32cubemx-generates-broken-sw4stm32-codeQuestion

Workaround #2:

Navigate to /plugins/fr.ac6.mcu.externaltools.arm-none.win32/tools/make;
Make a backup of the folder;
Remove the files:

echo.exe

msys-1.0.dll

msys-iconv-2.dll

make/msys-intl-8.dll

msys-regex-1.dll

msys-termcap-0.dll

sh.exe
’’
I didnt have all the files in my folder, but deleting the ones i had that matched the list made the build complete. Dont know if it has any negative repercussions though..


I am unable to build project and got the error.
Earlier i used build successfully and i did not change any project setting, still i am getting this error.
Uninstalled and installed the IDE.


Am Developing my project by STM32Cubemx and System workbench am getting the same error

c:/ac6/systemworkbench/plugins/fr.ac6.mcu.externaltools.arm-none.win32_1.17.0.201812190825/tools/make/sh: syntax error: unexpected “(”
Src/subdir.mk:30: recipe for target ‘Src/main.o’ failed
make: *** Src/main.o Error 2

Please suggest any solution

Hi,

Do you use Unix-type environment (such as cygwin) ? I think it run the wrong executable”make”.

Regards,
Kevin



I had same problem.

Four project are fine, but newly created fifth project generates errors during building. I spent several hours removing and modifying code... It was a waste of time
The project name contained parentheses... Yeap.
After removing it errors gone.


 

Newest Forum Posts

  1. Монтаж камина с грилем в Москве - установка и барбекю by KpddomErorb, 2025-05-10 18:28
  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