Code Monkey home page Code Monkey logo

Comments (6)

VasenevEA avatar VasenevEA commented on July 20, 2024 1

May be need to add this information to Readme?

from vs-code-stm32-ide.

schperplata avatar schperplata commented on July 20, 2024

It is hard to solve problems, if there is no sufficient information about the configuration/setup:

  • What was the command string when running Build task?
  • What did you try already? Did you try to compile a single file?
  • Is Update workspace task correctly executed?
  • ...
    It will be a lot easier if you describe your problem with as much detail as possible.

Anyway, a quick googling of this error code (Make *** Error 1) tells us, that this is actually GCC problem, not Make. Hence, check your GCC path and try to compile a single file by running Compile task on focused file. In my case, compile-time error is neatly displayed in terminal:

C:/Users/domen/AppData/Roaming/GNU MCU Eclipse/ARM Embedded GCC/7.3.1-1.1-20180724-0637/bin/arm-none-eabi-gcc -c -mcpu=cortex-m0 -mthumb   -DAVOID_EMPTY_DEFINE_FIELD_C -DUSE_HAL_DRIVER -DSTM32F051x8 -IInc -IDrivers/STM32F0xx_HAL_Driver/Inc -IDrivers/STM32F0xx_HAL_Driver/Inc/Legacy -IDrivers/CMSIS/Device/ST/STM32F0xx/Include -IDrivers/CMSIS/Include -Og -Wall -fdata-sections -ffunction-sections -g -gdwarf-2 -MMD -MP -MF"build/main.d" -Wa,-a,-ad,-alms=build/main.lst Src/main.c -o build/main.o
Src/main.c: In function 'main':
Src/main.c:137:3: error: expected ';' before '}' token
   }
   ^
make: *** [Makefile:156: build/main.o] Error 1
The terminal process terminated with exit code: 1

from vs-code-stm32-ide.

VasenevEA avatar VasenevEA commented on July 20, 2024

This is crazy, but all problems is out when I was change GCC version:
from 8.2.1-1.3-20190202-1016 to 7.3.1-1.1-20180724-0637

from vs-code-stm32-ide.

schperplata avatar schperplata commented on July 20, 2024

Will investigate and add notes if necessary.
Thank you.

from vs-code-stm32-ide.

poshcoe avatar poshcoe commented on July 20, 2024

I've been getting the same issue - only when using the latest GNU-MCU-Eclipse GCC release (v8.2.1-1.3 20190202) on Windows. I believe this is to do with the following in the 'known issues' for this release:

LTO & debugging on Windows

The Arm 8-2018-q4-major release introduced a problem on Windows: enabling debugging information (-g/-g3) prevents -flto to properly link. For Release configurations it is not a problem to remove the debug options, but for Debug configurations this is unusable. The workaround is to revert to the previous 7-2018-q2-update release, or to temporarily disable -flto.

from vs-code-stm32-ide.

schperplata avatar schperplata commented on July 20, 2024

Thanks, added a note to a README.

from vs-code-stm32-ide.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.