Skip to main content
MVerm.2
Associate II
January 31, 2021
Solved

Getting Error 2 on building project

  • January 31, 2021
  • 2 replies
  • 4222 views

0693W000007DKiWQAW.jpgHi,

I created a new project using the GUI and after pressing the Build button, I always get below information on the Console window.

The development board I'm using is STM32F407VET6 Black Board.

20:47:42 **** Incremental Build of configuration Debug for project ProjectOne ****

make -j2 all 

arm-none-eabi-gcc -o "ProjectOne.elf" @"objects.list"  -mcpu=cortex-m4 -T"E:\antiQue`s Stuff\Projects\STMicro Cube\ProjectOne\STM32F407VETX_FLASH.ld" --specs=nosys.specs -Wl,-Map="ProjectOne.map" -Wl,--gc-sections -static --specs=nano.specs -mfpu=fpv4-sp-d16 -mfloat-abi=hard -mthumb -Wl,--start-group -lc -lm -Wl,--end-group

c:/st/stm32cubeide_1.5.0/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.make.win32_1.5.0.202011040924/tools/bin/sh: syntax error: EOF in backquote substitution

make: *** [makefile:59: ProjectOne.elf] Error 2

"make -j2 all" terminated with exit code 2. Build might be incomplete.

20:47:43 Build Failed. 1 errors, 0 warnings. (took 796ms)

Please help me with this. It has been happening since I installed the IDE to get started. Not able to even try LED blinking.

This topic has been closed for replies.
Best answer by Emin Yagmahan

Possibly, the error could be caused by your project path. Your path contains special characters (`).

"E:\antiQue`s Stuff\Projects\STMicro Cube\ProjectOne\STM32F407VETX_FLASH.ld"

Renaming the folder might be helpful.

2 replies

Emin Yagmahan
Emin YagmahanBest answer
Associate II
January 31, 2021

Possibly, the error could be caused by your project path. Your path contains special characters (`).

"E:\antiQue`s Stuff\Projects\STMicro Cube\ProjectOne\STM32F407VETX_FLASH.ld"

Renaming the folder might be helpful.

MVerm.2
MVerm.2Author
Associate II
January 31, 2021

This resolved the issue.

Thank you So much @Community member​ 

Pavel A.
Super User
January 31, 2021

> -T"E:\antiQue`s Stuff\Projects

Your path contains backquote and spaces. Who actively looks for problems, gets them.

-- pa