platformio / platformio-core

Your Gateway to Embedded Software Development Excellence :alien:
https://platformio.org
Apache License 2.0
7.99k stars 800 forks source link

Cannot compile Marlin all of a sudden #4270

Closed Forunnerod closed 2 years ago

Forunnerod commented 2 years ago

Solution

  1. Please open PlatformIO Core CLI (see screenshot below)
  2. Type pio upgrade --dev
  3. Restart VSCode.

168773624-58165d88-e854-497a-8da9-40fc758651f6


Executing task: C:\Users\Mike.platformio\penv\Scripts\platformio.exe run <

Warning! src_filter configuration option in section [env:include_tree] is deprecated and will be removed in the next release! Please use build_src_filter instead Warning! src_filter configuration option in section [env:DUE] is deprecated and will be removed in the next release! Please use build_src_filter instead Warning! src_filter configuration option in section [env:esp32] is deprecated and will be removed in the next release! Please use build_src_filter instead Warning! src_build_flags configuration option in section [env:linux_native] is deprecated and will be removed in the next release! Please use build_src_flags instead Warning! src_filter configuration option in section [env:linux_native] is deprecated and will be removed in the next release! Please use build_src_filter instead Warning! src_build_flags configuration option in section [env:simulator_windows] is deprecated and will be removed in the next release! Please use build_src_flags instead Warning! src_filter configuration option in section [env:SAMD51_grandcentral_m4] is deprecated and will be removed in the next release! Please use build_src_filter instead Warning! src_filter configuration option in section [env:malyan_M300] is deprecated and will be removed in the next release! Please use build_src_filter instead Warning! src_filter configuration option in section [env:STM32F103CB_malyan] is deprecated and will be removed in the next release! Please use build_src_filter instead Warning! src_filter configuration option in section [env:teensy31] is deprecated and will be removed in the next release! Please use build_src_filter instead Warning! src_filter configuration option in section [env:teensy35] is deprecated and will be removed in the next release! Please use build_src_filter instead Warning! src_filter configuration option in section [env:teensy36] is deprecated and will be removed in the next release! Please use build_src_filter instead Warning! src_filter configuration option in section [env:teensy41] is deprecated and will be removed in the next release! Please use build_src_filter instead Processing STM32F103RE_btt_maple (platform: ststm32@~12.1; board: genericSTM32F103RE; framework: arduino) ---------------------------------------------------------------------------------------------------------------Verbose mode can be enabled via -v, --verbose option

JSo10 commented 2 years ago

I'm getting the same warning and then it will fail. after about 3 attempts with different files that previously worked the program crashed and I had to restart my pc.

ivankravets commented 2 years ago

Could someone provide a simple project to reproduce this issue?

The src_filter option has been renamed to the build_src_filter, but the previous version should work too.

SISLANGER commented 2 years ago

@ivankravets Same on Mac when compiling Marlin Firmware

ivankravets commented 2 years ago

@thinkyhead sorry that disturb you. Did we break something in PlatformIO Core 6.0? It has been released a few hours ago.

MakeNPrint commented 2 years ago

@ivankravets I can confirm renaming occurances src_filter with build_src_filter resolves the issue. So appears the backward compatability is not working.

MakeNPrint commented 2 years ago

@ivankravets update it fails at the last hurdle.

It now compiles but has a load of yellow warning and at the end fails to produce the firmware.bin. So while it fixes the PlatformIO issue, I suspect it breaks Marlin.

ivankravets commented 2 years ago

We found a bug on our side and will provide a quick fix soon. Sorry.

While this issue has not been fixed, please downgrade temporary to PlatformIO Cotr 5.0 via opening PlatformIO Core CLI in VSCode and typing:

pip install "platformio<6"

It also might require removing the following folders:

Did it help temporarily?

JSo10 commented 2 years ago

the auto-build marlin is saying to update to the latest version. after downgradeing.

update message
TD-er commented 2 years ago

We found a bug on our side and will provide a quick fix soon. Sorry.

While this issue has not been fixed, please downgrade temporary to PlatformIO Cotr 5.0 via opening PlatformIO Core CLI in VSCode and typing:

pip install "platformio<6"

It also might require removing the following folders:

  • ~/.platformio/platforms
  • ~/.platformio/packages

Did it help temporarily?

Nope, have been trying for over an hour but I don't seem to be able to reliably let PIO build. Had it able to build once using PIO6, but then do a clean and build again and it failed again. I now have reverted to PIO 5.2.5, but still see these linker errors cause by excluded folders that were built anyway. Have deleted the mentioned folders, but still it fails to build.

Any ETA on when this might be fixed?

Edit: I had moved the src_filter from my own [common] section to the [platformio] section and there it was apparently not being used. Moved it back to my own [common] section and now it builds again in PIO 5.2.5

aufdenkampe commented 2 years ago

I've had no end of troubles today trying to get projects to build with PIO6. The most challenging thing is that the errors aren't even reproducible; I seem to get a different set of errors each time I try to rebuild everything (by deleting the .pio folder and restarting VSCode).

I'll try downgrading with pip install "platformio<6"

jbaiao commented 2 years ago

We found a bug on our side and will provide a quick fix soon. Sorry.

While this issue has not been fixed, please downgrade temporary to PlatformIO Cotr 5.0 via opening PlatformIO Core CLI in VSCode and typing:

pip install "platformio<6"

It also might require removing the following folders:

  • ~/.platformio/platforms
  • ~/.platformio/packages

Did it help temporarily?

Yes, this work! Tks!

SikVac commented 2 years ago

Platformio 6 is on beta and incompatible with Marlin ! Go back to 5.2.5 ! image pip install platformio==5.2.5

ivankravets commented 2 years ago

Guys, sorry for the issue. Could we ask you to re-test the latest development version?

  1. Open PlatformIO Core CLI
  2. Type pio upgrade --dev
  3. Restart VSCode.

If it works for you, we will release PIO Core 6.0.1.

Thanks.

MakeNPrint commented 2 years ago

@ivankravets not for me (Mac) still giving

collect2: error: ld returned 1 exit status *** [.pio/build/BIGTREE_SKR_PRO/firmware.elf] Error 1

ivankravets commented 2 years ago
Screen Shot 2022-05-17 at 13 44 10

Which version of Marlin do you use?

ivankravets commented 2 years ago
Screen Shot 2022-05-17 at 13 45 47

Tested both envs with the latest stable Marlin 2.0.

MakeNPrint commented 2 years ago

@ivankravets I also just tried deleting below again and no luck. .platformio/platforms .platformio/packages

That one was Marlin 2.7.2 STM32 as I was testing yesterday 2.9.3 wasnt working so I tried earlier version. Tried Marlin 2.9.3 STM32 as well no luck causing Marlin errors Tried Marlin 2.9.3 STM32 - Different board and MCU. It works Tried Marlin 2.9.2 LPC1769 and it works

So 2.7.2 not working.

First 2.9.3 test was a fresh download config example. So maybe a parameter in Configuartion files for Marlin I missed??

Marlin 2.9.2 - Working

Marlin 2.9.3 2nd Test known working config files - Working

MakeNPrint commented 2 years ago

@ivankravets Marlin 2.9.3 - BTT SKR Pro V1.2 (default_envs = BIGTREE_SKR_PRO) (STM32F407ZGT6) Fails compiling

collect2: error: ld returned 1 exit status *** [.pio/build/BIGTREE_SKR_PRO/firmware.elf] Error 1

ivankravets commented 2 years ago

I've created a PR that switches Marlin to the PIO Core 6.0. I don't see any failed builds https://github.com/MarlinFirmware/Marlin/actions/runs/2338187390

@MakeNPrint could you provide me a PlatformIO Project to reproduce your issues?

Sonicboom247 commented 2 years ago

just followed this and is working with Marlin 2.0.9.3 Bugfix from last night! you will still see the warnings but it will compile. Thank you!

Open PlatformIO Core CLI Type pio upgrade --dev

ivankravets commented 2 years ago

Yes, please ignore yellow warnings.

MakeNPrint commented 2 years ago

@ivankravets Ok, to ensure it wasnt ghosting errors, I downloaded fresh Marlin and been manually copying over the settings and placed it into a new folder path.

It now compiles with out any red errors.

mrrstrat commented 2 years ago

Hey gang - this threw me for a 24 hour loop. There is a fleet of production and lab machines that like to have this working :-)

So where does this leave things: is this a stable fix or will it require another release to fully correct?

Haiang commented 2 years ago

Confirm pio upgrade --dev It worked thanks Untitled .

mrrstrat commented 2 years ago

This worked as well for me - I was able to complete a board upgrade on a production machine: is "pio upgrade --dev" installing a DEV version and is there a PROD release in the works?

xrunner commented 2 years ago

pio upgrade --dev

^^^ fixed it here for me too!

mattcoon commented 2 years ago

confirmed pio upgrade --dev worked for me too. thanks for the quick fix

linroid commented 2 years ago

Thanks! pio upgrade --dev works for me, I should come here earlier 😭

ivankravets commented 2 years ago

Sorry for the issue. PIO Core 6.0.1 is coming in the next minutes.

sunfl0w3r commented 2 years ago

So I can confirm that the reverting to 5.2.5 did the trick for me. I can also confirm that the dev version does also work.

5.2.5 - Windows - Works image

6.0.1b1 - Linux - Also works (ignore the failed build. It's cause of me.) image

ivankravets commented 2 years ago

The PlatformIO Core 6.0.1 is out! https://github.com/platformio/platformio-core/releases/tag/v6.0.1

Please upgrade via pio uprade.

Sonicboom247 commented 2 years ago

updated successfully but still getting warnings

image

image compiling successfully so don't really care about the warnings, thank you!

MakeNPrint commented 2 years ago

The PlatformIO Core 6.0.1 is out! https://github.com/platformio/platformio-core/releases/tag/v6.0.1

Please upgrade via pio uprade.

Awesome even Marlin 2.7.2 is working, thank you for your hard work.

aufdenkampe commented 2 years ago

Although 6.0.1 worked for me to build my project again, it appears that I can no longer have PlatformIO enabled for both Atom and VSCode with the "Use Builtin PIOCore" set to true for each. This worked for me previously, and was very helpful. However, now when I open one IDE after the other, it wants to reinstall PIO and this has led to lots of problems (and me uninstalling everything and starting from scratch).

Is there a solution to this?

mrrstrat commented 2 years ago

Good job on this! Upgraded to PlatformIO Core 6.0.1 and all is working :-)

ivankravets commented 2 years ago

@aufdenkampe we dropped support for Atom, see https://docs.platformio.org/en/latest/integration/ide/atom.html

Nevertheless, it should be possible to use the same installation of PIO Core. What is the reason that you use Atom? Both editors are from Microsoft where Atom does not receive any new features. Microsoft keeps it alive just to not hurt the previous Github community.

aufdenkampe commented 2 years ago

@ivankravets, thanks for the heads up that you fully dropped support for Atom. I hadn't picked that up.

My reasons for still using Atom from time to time are due to:

Other than that, I'm quite happy with the switch to VSCode.

aufdenkampe commented 2 years ago

@ivankravets, these fixes are still not working for me.

It seemed to compile my code, but only the first time after reinstalling it (which I had to do frequently with the weird issue with Atom).

The second time compiling after a clean reinstall gives me this error, every time.

Note that I'm running on Mac OS 12.3 and have Anaconda 2022-05 installed for Python.

The exact same code and .ini file worked for me last week.

Processing mayfly (board: mayfly; platform: atmelavr; framework: arduino)
---------------------------------------------------------------------------------------------------------------------------
Verbose mode can be enabled via `-v, --verbose` option
CONFIGURATION: https://docs.platformio.org/page/boards/atmelavr/mayfly.html
PLATFORM: Atmel AVR (3.4.0) > EnviroDIY Mayfly
HARDWARE: ATMEGA1284P 8MHz, 16KB RAM, 127KB Flash
DEBUG: Current (simavr) On-board (simavr)
PACKAGES: 
 - framework-arduino-avr @ 5.1.0 
 - toolchain-atmelavr @ 1.70300.191015 (7.3.0)
Converting RCB-4.ino
LDF: Library Dependency Finder -> https://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ deep+, Compatibility ~ soft
Found 30 compatible libraries
Scanning dependencies...
Dependency Graph
|-- EnviroDIY_ModularSensors @ 0.32.2
|   |-- EnviroDIY_DS3231 @ 1.3.4
|   |   |-- Wire @ 1.0
|   |-- EnableInterrupt @ 1.1.0
|   |-- SdFat @ 2.1.2
|   |   |-- SPI @ 1.0
|   |-- TinyGSM @ 0.11.5
|   |-- PubSubClient @ 2.8.0
|   |-- Adafruit BusIO @ 1.7.5
|   |   |-- Wire @ 1.0
|   |   |-- SPI @ 1.0
|   |-- Adafruit Unified Sensor @ 1.1.5
|   |-- Adafruit ADS1X15 @ 1.2.0+sha.7d67b45
|   |   |-- Wire @ 1.0
|   |-- Adafruit AM2315 @ 2.2.1
|   |   |-- Adafruit BusIO @ 1.7.5
|   |   |   |-- Wire @ 1.0
|   |   |   |-- SPI @ 1.0
|   |   |-- Wire @ 1.0
|   |-- Adafruit BME280 Library @ 2.1.4
|   |   |-- Adafruit Unified Sensor @ 1.1.5
|   |   |-- SPI @ 1.0
|   |   |-- Wire @ 1.0
|   |-- DHT sensor library @ 1.4.3
|   |   |-- Adafruit Unified Sensor @ 1.1.5
|   |-- Adafruit INA219 @ 1.1.1
|   |   |-- Wire @ 1.0
|   |   |-- Adafruit BusIO @ 1.7.5
|   |   |   |-- Wire @ 1.0
|   |   |   |-- SPI @ 1.0
|   |   |-- SPI @ 1.0
|   |-- Adafruit MPL115A2 @ 1.1.3
|   |   |-- Wire @ 1.0
|   |-- OneWire @ 2.3.6
|   |-- DallasTemperature @ 3.9.1
|   |   |-- OneWire @ 2.3.6
|   |-- SDI-12 @ 2.1.4
|   |-- MS5803 @ 0.1.2
|   |   |-- Wire @ 1.0
|   |-- SensorModbusMaster @ 0.6.8
|   |-- KellerModbus @ 0.2.2
|   |   |-- SensorModbusMaster @ 0.6.8
|   |-- YosemitechModbus @ 0.2.5
|   |   |-- SensorModbusMaster @ 0.6.8
|   |-- SPI @ 1.0
|   |-- Wire @ 1.0
|   |-- Tally_Library @ 0.1.0+sha.3b128ad
|   |   |-- Wire @ 1.0
|-- SdFat @ 2.1.2
|   |-- SPI @ 1.0
|-- AltSoftSerial @ 1.4.0+sha.8e86f89
|-- NeoSWSerial @ 3.0.6+sha.79d693b
|-- SoftwareSerial_ExtInts @ 1.0.0+sha.4ddf9fb
|-- EnableInterrupt @ 1.1.0
|-- EnviroDIY_DS3231 @ 1.3.4
|   |-- Wire @ 1.0
|-- SPI @ 1.0
|-- TinyGSM @ 0.11.5
|-- YosemitechModbus @ 0.2.5
|   |-- SensorModbusMaster @ 0.6.8
|-- SensorModbusMaster @ 0.6.8
Building in release mode
Compiling .pio/build/mayfly/src/RCB-4.ino.cpp.o
Compiling .pio/build/mayfly/lib091/Wire/Wire.cpp.o
Compiling .pio/build/mayfly/lib091/Wire/utility/twi.c.o
Compiling .pio/build/mayfly/lib00d/EnviroDIY_DS3231/Sodaq_DS3231.cpp.o
Compiling .pio/build/mayfly/lib723/SPI/SPI.cpp.o
Compiling .pio/build/mayfly/lib58c/SdFat/ExFatLib/ExFatDbg.cpp.o
Compiling .pio/build/mayfly/lib58c/SdFat/ExFatLib/ExFatFile.cpp.o
Compiling .pio/build/mayfly/lib58c/SdFat/ExFatLib/ExFatFilePrint.cpp.o
/Users/aaufdenkampe/Documents/Arduino/EnviroDIY_deployments/deploy-RCB/RCB-4/RCB-4.ino: In function 'float calculateSonarGageHeight()':
/Users/aaufdenkampe/Documents/Arduino/EnviroDIY_deployments/deploy-RCB/RCB-4/RCB-4.ino:303:17: warning: unused variable 'minimumRange' [-Wunused-variable]
     const float minimumRange = 500;    // in millimeters
                 ^~~~~~~~~~~~
/Users/aaufdenkampe/Documents/Arduino/EnviroDIY_deployments/deploy-RCB/RCB-4/RCB-4.ino:304:17: warning: unused variable 'maximumRange' [-Wunused-variable]
     const float maximumRange = 10000;    // in millimeters
                 ^~~~~~~~~~~~
Compiling .pio/build/mayfly/lib58c/SdFat/ExFatLib/ExFatFileWrite.cpp.o
Compiling .pio/build/mayfly/lib58c/SdFat/ExFatLib/ExFatFormatter.cpp.o
Compiling .pio/build/mayfly/lib58c/SdFat/ExFatLib/ExFatName.cpp.o
Compiling .pio/build/mayfly/lib58c/SdFat/ExFatLib/ExFatPartition.cpp.o
Compiling .pio/build/mayfly/lib58c/SdFat/ExFatLib/ExFatVolume.cpp.o
Compiling .pio/build/mayfly/lib58c/SdFat/FatLib/FatDbg.cpp.o
Compiling .pio/build/mayfly/lib58c/SdFat/FatLib/FatFile.cpp.o
Compiling .pio/build/mayfly/lib58c/SdFat/FatLib/FatFileLFN.cpp.o
Archiving .pio/build/mayfly/lib00d/libEnviroDIY_DS3231.a
Indexing .pio/build/mayfly/lib00d/libEnviroDIY_DS3231.a
Archiving .pio/build/mayfly/lib723/libSPI.a
Archiving .pio/build/mayfly/lib091/libWire.a
Compiling .pio/build/mayfly/lib58c/SdFat/FatLib/FatFilePrint.cpp.o
/Users/aaufdenkampe/.platformio/packages/toolchain-atmelavr/bin/../lib/gcc/avr/7.3.0/../../../../avr/bin/ar: .pio/build/mayfly/lib723/libSPI.a: No such file or directory
/Users/aaufdenkampe/.platformio/packages/toolchain-atmelavr/bin/../lib/gcc/avr/7.3.0/../../../../avr/bin/ar: .pio/build/mayfly/lib091/libWire.a: No such file or directory
Assembler messages:
Fatal error: can't create .pio/build/mayfly/lib58c/SdFat/ExFatLib/ExFatFileWrite.cpp.o: No such file or directory
Assembler messages:
Fatal error: can't create .pio/build/mayfly/lib58c/SdFat/FatLib/FatDbg.cpp.o: No such file or directory
Assembler messages:
Fatal error: can't create .pio/build/mayfly/lib58c/SdFat/ExFatLib/ExFatDbg.cpp.o: No such file or directory
Assembler messages:
Fatal error: can't create .pio/build/mayfly/lib58c/SdFat/ExFatLib/ExFatFile.cpp.o: No such file or directory
*** [.pio/build/mayfly/lib723/libSPI.a] Error 1
*** [.pio/build/mayfly/lib091/libWire.a] Error 1
*** [.pio/build/mayfly/lib58c/SdFat/ExFatLib/ExFatFileWrite.cpp.o] Error 1
*** [.pio/build/mayfly/lib58c/SdFat/FatLib/FatDbg.cpp.o] Error 1
*** [.pio/build/mayfly/lib58c/SdFat/ExFatLib/ExFatDbg.cpp.o] Error 1
*** [.pio/build/mayfly/lib58c/SdFat/ExFatLib/ExFatFile.cpp.o] Error 1
Assembler messages:
Fatal error: can't create .pio/build/mayfly/lib58c/SdFat/FatLib/FatFileLFN.cpp.o: No such file or directory
*** [.pio/build/mayfly/lib58c/SdFat/FatLib/FatFileLFN.cpp.o] Error 1
Assembler messages:
Fatal error: can't create .pio/build/mayfly/lib58c/SdFat/FatLib/FatFilePrint.cpp.o: No such file or directory
*** [.pio/build/mayfly/lib58c/SdFat/FatLib/FatFilePrint.cpp.o] Error 1
Assembler messages:
Fatal error: can't create .pio/build/mayfly/src/RCB-4.ino.cpp.o: No such file or directory
Assembler messages:
Fatal error: can't create .pio/build/mayfly/lib58c/SdFat/FatLib/FatFile.cpp.o: No such file or directory
*** [.pio/build/mayfly/src/RCB-4.ino.cpp.o] Error 1
*** [.pio/build/mayfly/lib58c/SdFat/FatLib/FatFile.cpp.o] Error 1
FileNotFoundError: [Errno 2] No such file or directory: '/Users/aaufdenkampe/Documents/Arduino/EnviroDIY_deployments/.pio/build/mayfly/.sconsign36.tmp':
  File "/Users/aaufdenkampe/.platformio/packages/tool-scons/scons-local-4.3.0/SCons/Script/Main.py", line 1401:
    _exec_main(parser, values)
  File "/Users/aaufdenkampe/.platformio/packages/tool-scons/scons-local-4.3.0/SCons/Script/Main.py", line 1365:
    _main(parser)
  File "/Users/aaufdenkampe/.platformio/packages/tool-scons/scons-local-4.3.0/SCons/Script/Main.py", line 1134:
    nodes = _build_targets(fs, options, targets, target_top)
  File "/Users/aaufdenkampe/.platformio/packages/tool-scons/scons-local-4.3.0/SCons/Script/Main.py", line 1340:
    jobs.run(postfunc = jobs_postfunc)
  File "/Users/aaufdenkampe/.platformio/packages/tool-scons/scons-local-4.3.0/SCons/Job.py", line 110:
    postfunc()
  File "/Users/aaufdenkampe/.platformio/packages/tool-scons/scons-local-4.3.0/SCons/Script/Main.py", line 1337:
    SCons.SConsign.write()
  File "/Users/aaufdenkampe/.platformio/packages/tool-scons/scons-local-4.3.0/SCons/SConsign.py", line 133:
    syncmethod()
  File "/Users/aaufdenkampe/.platformio/packages/tool-scons/scons-local-4.3.0/SCons/dblite.py", line 148:
    with self._open(self._tmp_name, "wb", self._mode) as f:
=============================================== [FAILED] Took 4.13 seconds ===============================================
The terminal process "platformio 'run'" terminated with exit code: 1.
TD-er commented 2 years ago

To me it looks like a lib_deps is missing one of the libraries you need (or maybe there is a naming conflict with another library or fork) or it can't find a lib you have in your project.

adquarters commented 2 years ago

After 3 days of trying I still can not compile. I have a Creality CR10 S5 and desperately need to install the firmware. Can anyone compile the code and send me the install file to put on my SD card????

ivankravets commented 2 years ago

@adquarters please share the full output from the building process.

adquarters commented 2 years ago

Executing task: platformio run <

Warning! src_filter configuration option in section [env:include_tree] is deprecated and will be removed in the next release! Please use build_src_filter instead Warning! src_filter configuration option in section [env:DUE] is deprecated and will be removed in the next release! Please use build_src_filter instead Warning! src_filter configuration option in section [env:esp32] is deprecated and will be removed in the next release! Please use build_src_filter instead Warning! src_build_flags configuration option in section [env:linux_native] is deprecated and will be removed in the next release! Please use build_src_flags instead Warning! src_filter configuration option in section [env:linux_native] is deprecated and will be removed in the next release! Please use build_src_filter instead Warning! src_build_flags configuration option in section [env:simulator_windows] is deprecated and will be removed in the next release! Please use build_src_flags instead Warning! src_filter configuration option in section [env:SAMD51_grandcentral_m4] is deprecated and will be removed in the next release! Please use build_src_filter instead Warning! src_filter configuration option in section [env:malyan_M300] is deprecated and will be removed in the next release! Please use build_src_filter instead Warning! src_filter configuration option in section [env:STM32F103CB_malyan] is deprecated and will be removed in the next release! Please use build_src_filter instead Warning! src_filter configuration option in section [env:teensy31] is deprecated and will be removed in the next release! Please use build_src_filter instead Warning! src_filter configuration option in section [env:teensy35] is deprecated and will be removed in the next release! Please use build_src_filter instead Warning! src_filter configuration option in section [env:teensy36] is deprecated and will be removed in the next release! Please use build_src_filter instead Warning! src_filter configuration option in section [env:teensy41] is deprecated and will be removed in the next release! Please use build_src_filter instead Processing mega2560 (board: megaatmega2560; platform: atmelavr@~3.4; framework: arduino)

Verbose mode can be enabled via -v, --verbose option CONFIGURATION: https://docs.platformio.org/page/boards/atmelavr/megaatmega2560.html PLATFORM: Atmel AVR (3.4.0) > Arduino Mega or Mega 2560 ATmega2560 (Mega 2560) HARDWARE: ATMEGA2560 16MHz, 8KB RAM, 248KB Flash DEBUG: Current (avr-stub) On-board (avr-stub, simavr) PACKAGES:

Environment Status Duration


mega2560 FAILED 00:00:05.049 ============================================= 1 failed, 0 succeeded in 00:00:05.049 ============================================= The terminal process "platformio 'run'" terminated with exit code: 1.

Terminal will be reused by tasks, press any key to close it.

adquarters commented 2 years ago

I have tried with Arduino and VS Code

ivankravets commented 2 years ago

Have you read this thread from the beginning?

mrrstrat commented 2 years ago

To me it looks like a lib_deps is missing one of the libraries you need (or maybe there is a naming conflict with another library or fork) or it can't find a lib you have in your project.

Other languages can generate such an error if the interface references within libs has changed in some unaccomodatable way.

adquarters commented 2 years ago

Yes but I am definitely not a coder

mrrstrat commented 2 years ago

Yes but I am definitely not a coder

We still like you anyway :-)

ivankravets commented 2 years ago

You need to upgrade PlatformIO Core to the latest stable version. The instruction is added above. Simply, click on the PlatformIO icon in VSCode (left activity bar) => Misc... => Upgrade PlatfomIO Core.

Restart VSCode.

Does it work now?

adquarters commented 2 years ago

doing it now

adquarters commented 2 years ago

SUCCESS!!!!!