geoffreymbrown / STM32-Template

A Build Template for the STM32 Processor
145 stars 66 forks source link

Yet another Make error #7

Open hemalchevli opened 7 years ago

hemalchevli commented 7 years ago

Hello,

I'm using windows 7 and GNU ARM Embedded Toolchain from launch pad, and peripheral lib v3.5 I'm getting the following error.

D:\STM32\STM32-Template\Demo>make C:\Program Files (x86)\GNU Tools ARM Embedded\5.4 2016q3\bin\arm-none-eabi-gcc -c -O1 -g -mcpu=cortex-m3 -mthumb -I.. -ID:\STM32\STM32F10x_StdPeriph_Lib_V3.5.0 \Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x -ID:\STM32\STM32F10x_StdPeriph_Lib_V3.5.0\Libraries\CMSIS\CM3\CoreSupport -ID:\STM32\STM32F10x_StdPeriph_Lib_V3. 5.0\Libraries\STM32F10x_StdPeriph_Driver\inc -I. -DSTM32F10X_MD_VL -DUSE_STDPERIPH_DRIVER -DUSE_FULL_ASSERT -I..\Library\ff9\src -I..\Library ../startup_stm32 f10x.c -o startup_stm32f10x.o /usr/bin/sh: -c: line 1: syntax error near unexpected token '(x' /usr/bin/sh: -c: line 1: 'C:\Program Files (x86)\GNU Tools ARM Embedded\5.4 2016q3\bin\arm-none-eabi-gcc -c -O1 -g -mcpu=cortex-m3 -mthumb -I.. -ID:\STM32\STM3 2F10x_StdPeriph_Lib_V3.5.0\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x -ID:\STM32\STM32F10x_StdPeriph_Lib_V3.5.0\Libraries\CMSIS\CM3\CoreSupport -ID:\STM32\S TM32F10x_StdPeriph_Lib_V3.5.0\Libraries\STM32F10x_StdPeriph_Driver\inc -I. -DSTM32F10X_MD_VL -DUSE_STDPERIPH_DRIVER -DUSE_FULL_ASSERT -I..\Library\ff9\src -I. .\Library ../startup_stm32f10x.c -o startup_stm32f10x.o' make: *** [startup_stm32f10x.o] Error 258

It seems that there is a syntax error in startup_stm32f10x.c but I haven't edited it. Please advise.

Thank you.

geoffreymbrown commented 7 years ago

With windows it might be a path name error \a\b\c vs /a/b/c

Geoffrey

On Sun, Jan 15, 2017 at 5:12 AM, Hemal Chevli notifications@github.com wrote:

Hello,

I'm using windows 7 and GNU ARM Embedded Toolchain from launch pad, and peripheral lib v3.5 I'm getting the following error.

D:\STM32\STM32-Template\Demo>make C:\Program Files (x86)\GNU Tools ARM Embedded\5.4 2016q3\bin\arm-none-eabi-gcc -c -O1 -g -mcpu=cortex-m3 -mthumb -I.. -ID:\STM32\STM32F10x_StdPeriph_Lib_V3.5.0 \Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x -ID:\STM32\STM32F10x_StdPeriph_Lib_V3.5.0\Libraries\CMSIS\CM3\CoreSupport -ID:\STM32\STM32F10x_StdPeriph_Lib_V3. 5.0\Libraries\STM32F10x_StdPeriph_Driver\inc -I. -DSTM32F10X_MD_VL -DUSE_STDPERIPH_DRIVER -DUSE_FULL_ASSERT -I..\Library\ff9\src -I..\Library ../startup_stm32 f10x.c -o startup_stm32f10x.o /usr/bin/sh: -c: line 1: syntax error near unexpected token '(x' /usr/bin/sh: -c: line 1: 'C:\Program Files (x86)\GNU Tools ARM Embedded\5.4 2016q3\bin\arm-none-eabi-gcc -c -O1 -g -mcpu=cortex-m3 -mthumb -I.. -ID:\STM32\STM3 2F10x_StdPeriph_Lib_V3.5.0\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x -ID:\STM32\STM32F10x_StdPeriph_Lib_V3.5.0\Libraries\CMSIS\CM3\CoreSupport -ID:\STM32\S TM32F10x_StdPeriph_Lib_V3.5.0\Libraries\STM32F10x_StdPeriph_Driver\inc -I. -DSTM32F10X_MD_VL -DUSE_STDPERIPH_DRIVER -DUSE_FULL_ASSERT -I..\Library\ff9\src -I. .\Library ../startup_stm32f10x.c -o startup_stm32f10x.o' make: *** [startup_stm32f10x.o] Error 258

It seems that there is a syntax error in startup_stm32f10x.c but I haven't edited it. Please advise.

Thank you.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/geoffreymbrown/STM32-Template/issues/7, or mute the thread https://github.com/notifications/unsubscribe-auth/ABq_Ui7EUG9fhmu-gC6cZGHKk7hnoyFmks5rSfEogaJpZM4Lj4NJ .

hemalchevli commented 7 years ago

I tried that. And also commenting out STARUP variable in makefile.common still getting the same error. Its invoking /use/bin/sh that is something I'm looking in to.

Thanks for the quick reply. Have a good one.

On 15-Jan-2017 7:00 pm, "Geoffrey Brown" notifications@github.com wrote:

With windows it might be a path name error \a\b\c vs /a/b/c

Geoffrey

On Sun, Jan 15, 2017 at 5:12 AM, Hemal Chevli notifications@github.com wrote:

Hello,

I'm using windows 7 and GNU ARM Embedded Toolchain from launch pad, and peripheral lib v3.5 I'm getting the following error.

D:\STM32\STM32-Template\Demo>make C:\Program Files (x86)\GNU Tools ARM Embedded\5.4 2016q3\bin\arm-none-eabi-gcc -c -O1 -g -mcpu=cortex-m3 -mthumb -I.. -ID:\STM32\STM32F10x_StdPeriph_Lib_V3.5.0 \Libraries\CMSIS\CM3\ DeviceSupport\ST\STM32F10x -ID:\STM32\STM32F10x_StdPeriph_Lib_V3.5.0\Libraries\CMSIS\CM3\CoreSupport -ID:\STM32\STM32F10x_StdPeriph_LibV3. 5.0\Libraries\STM32F10x StdPeriph_Driver\inc -I. -DSTM32F10X_MD_VL -DUSE_STDPERIPH_DRIVER -DUSE_FULL_ASSERT -I..\Library\ff9\src -I..\Library ../startup_stm32 f10x.c -o startup_stm32f10x.o /usr/bin/sh: -c: line 1: syntax error near unexpected token '(x' /usr/bin/sh: -c: line 1: 'C:\Program Files (x86)\GNU Tools ARM Embedded\5.4 2016q3\bin\arm-none-eabi-gcc -c -O1 -g -mcpu=cortex-m3 -mthumb -I.. -ID:\STM32\STM3 2F10x_StdPeriph_Lib_V3.5.0\Libraries\CMSIS\CM3\ DeviceSupport\ST\STM32F10x -ID:\STM32\STM32F10x_StdPeriph_Lib_V3.5.0\Libraries\CMSIS\CM3\CoreSupport -ID:\STM32\S TM32F10x_StdPeriph_Lib_V3.5.0\Libraries\STM32F10xStdPeriph Driver\inc -I. -DSTM32F10X_MD_VL -DUSE_STDPERIPH_DRIVER -DUSE_FULL_ASSERT -I..\Library\ff9\src -I. .\Library ../startup_stm32f10x.c -o startup_stm32f10x.o' make: *** [startup_stm32f10x.o] Error 258

It seems that there is a syntax error in startup_stm32f10x.c but I haven't edited it. Please advise.

Thank you.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/geoffreymbrown/STM32-Template/issues/7, or mute the thread https://github.com/notifications/unsubscribe-auth/ABq_Ui7EUG9fhmu- gC6cZGHKk7hnoyFmks5rSfEogaJpZM4Lj4NJ .

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/geoffreymbrown/STM32-Template/issues/7#issuecomment-272695313, or mute the thread https://github.com/notifications/unsubscribe-auth/AA55YI38FJ2M8BOlH25YwnGIP6x2Oqedks5rSh-KgaJpZM4Lj4NJ .