Comments (6)
May be need to add this information to Readme?
from vs-code-stm32-ide.
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.
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.
Will investigate and add notes if necessary.
Thank you.
from vs-code-stm32-ide.
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.
Thanks, added a note to a README.
from vs-code-stm32-ide.
Related Issues (20)
- Invalid path detected in 'buildData.json' 'stm32SvdPath' key HOT 9
- how to install HOT 4
- Building issue HOT 6
- .vscode cfg file not found by openocd HOT 3
- GDB not found HOT 2
- Error when Flashing HOT 1
- GNU eclipse tools, GNU Eclipse ARM Embedded GCC: 7-2018-q2 not available HOT 3
- Problem with FreeRTOS HOT 2
- Maybe I got a bug. HOT 4
- Problem with access (seemingly) when executing update.py HOT 8
- Update.py Run Error HOT 1
- Error (unrecoverable) Unable to find matching STM32 CPU name for Keil project device: STM32L072CTx HOT 2
- Install on Mac OS HOT 1
- gccExePath HOT 2
- Paths with spaces HOT 2
- IndexError: list index out of range HOT 1
- Make file missing seprator HOT 1
- PermissionError: [WinError 5] Access is denied HOT 1
- Try build and get this: "undefined reference to .... HOT 2
- update.py generates bad arguments for openocd HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vs-code-stm32-ide.