AnsweredAssumed Answered

Hal driver error 258

Question asked by oziom.dominik on Jul 17, 2015
Latest reply on Jul 30, 2015 by noest.bernhar.001
Hello,
A few days ago I started my adventure with stm32 microcontrollers. To be able to programm them easly I downloaded CubeMX  from this side http://www.st.com/web/catalog/tools/FM147/CL1794/SC961/SS1533/PF259242?sc=stm32cube#
and of course something for debugging which is system workbench for stm32
http://www.openstm32.org/System+Workbench+for+STM32

Everything was going smoothly. I created my first project in CubeMX, chose IDE SW4STM32 in >>project >>settings (it downloaded some libraries) and saved in a workspace. Then I opened a Workbench for stm32, imported that project and clicked a debugging hammer. Unfortunatelly I got one error but I totally don't know what it is about.  

make all
Building file: C:/Users/Dominik/Documents/Test1/Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal.c
Invoking: MCU GCC Compiler
arm-none-eabi-gcc -mcpu=cortex-m4 -mthumb -mfloat-abi=hard -mfpu=fpv4-sp-d16 -D__weak=__attribute__((weak)) -D__packed=__attribute__((__packed__)) -DUSE_HAL_DRIVER -DSTM32F303xC -I..\..\..\Inc -I..\..\..\Drivers\STM32F3xx_HAL_Driver\Inc -I..\..\..\Drivers\CMSIS\Include -I..\..\..\Drivers\CMSIS\Device\ST\STM32F3xx\Include -Os -g3 -Wall -fmessage-length=0 -ffunction-sections -c -MMD -MP -MF"Drivers/STM32F3xx_HAL_Driver/stm32f3xx_hal.d" -MT"Drivers/STM32F3xx_HAL_Driver/stm32f3xx_hal.d" -o "Drivers/STM32F3xx_HAL_Driver/stm32f3xx_hal.o" "C:/Users/Dominik/Documents/Test1/Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal.c"
/usr/bin/sh: -c: line 1: syntax error near unexpected token `-D__weak=__attribute__(('
/usr/bin/sh: -c: line 1: `arm-none-eabi-gcc -mcpu=cortex-m4 -mthumb -mfloat-abi=hard -mfpu=fpv4-sp-d16 -D__weak=__attribute__((weak)) -D__packed=__attribute__((__packed__)) -DUSE_HAL_DRIVER -DSTM32F303xC -I..\..\..\Inc -I..\..\..\Drivers\STM32F3xx_HAL_Driver\Inc -I..\..\..\Drivers\CMSIS\Include -I..\..\..\Drivers\CMSIS\Device\ST\STM32F3xx\Include -Os -g3 -Wall -fmessage-length=0 -ffunction-sections -c -MMD -MP -MF"Drivers/STM32F3xx_HAL_Driver/stm32f3xx_hal.d" -MT"Drivers/STM32F3xx_HAL_Driver/stm32f3xx_hal.d" -o "Drivers/STM32F3xx_HAL_Driver/stm32f3xx_hal.o" "C:/Users/Dominik/Documents/Test1/Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal.c"'
make: *** [Drivers/STM32F3xx_HAL_Driver/stm32f3xx_hal.o] Error 258

During my Internet research I found this article:  http://www.openstm32.org/forumthread701

I did the same thing as described above but it didn't help.
Please help me with this matter. What am I doing wrong?
I guess the problem lays in connection between CubeMX and eclipse and it is about linking libraries. But I have no idea how to fix it.
Im using a 64 bit Windows 7, I also have Java 64bit installed.

Please help

Regards
Dominik O.

Outcomes