Closed charles-owen closed 8 years ago
Please see Issue 543: https://github.com/platformio/platformio/issues/543 What you are seeing is Intellisense errors, not compile errors. The solution is a bit finicky depending on your source code layout.
How did you create project? Try Menu: PlatformIO > Rebuild C/C++ Project Index
.
I built the project using the instructions in the getting started, just changed the board type.
But, Rebuild C/C++ Project Index does appear to have fixed the problem. What does that do?
@charles-owen you have changed the board manually without rebuilding index. Code Linter didn't know about it. I've just opened an issue for that https://github.com/platformio/platformio-atom-ide/issues/70
What kind of issue is this?
You can erase any parts of this template not applicable to your Issue.
Configuration
Windows 10
IDE 1.0.5, CLI 2.8.5 (
platformio --version
):Description of problem
When I compile a program the IDE reports errors in the source code that are not emitted by the compiler in the build window. I am loading main.c from stm32-spl-blink. It compiles and runs just fine. But, the IDE says I have two errors where none exist.
Steps to Reproduce
Actual Results
arm-none-eabi-gcc -o .pioenvs\disco_l152rb\src\main.o -c -g -Os -ffunction-sections -fdata-sections -Wall -mthumb -mcpu=cortex-m3 -nostdlib -DF_CPU=32000000L -DST M32L152XB -DSTM32L1 -DSTM32L152xB -DSTM32L1XX_MD -DPLATFORMIO=020805 -I.pioenvs\disco_l152rb\FrameworkCMSIS -I.pioenvs\disco_l152rb\FrameworkCMSISVariant -I.pioen vs\disco_l152rb\FrameworkSPLInc -I.pioenvs\disco_l152rb\FrameworkSPL src\main.c
No error is indicated. But, the IDE indicates:
GCC error variable or field 'simple_delay' declared void at line 22 col 19 GCC error 'uint32_t' was not declared in this scope at line 22 col 19
Expected Results
There should not be any error messages.
If problems with PlatformIO Build System:
The content of
platformio.ini
:Source file to reproduce issue:
Additional info