I recently rebuilt my hobby room laptop. Installing Linux Mint, my preferred OS other than MacOS. So I had to reinstall Visual Studio Code and configure Platformio after this all configured I was getting errors about the arduino.h not being found. Wasn’t sure if I missed something so I double checked it all. Still got the same error. I then tried compiling Unified2 from TH3DStudio and it compiles fine. I checked the platforio.ini file on both and they both have the same call to arduino.h. Downloaded the version of firmware from October from Sovol, same error trying to compile it.
I don’t want to contact Sovol just yet with the issue. I want to wait until they ship my bed kit and BLTouch then I’ll stir the pot. There are absolutely no instructions for compiling the firmware, I thinking maybe they don’t want you compiling your own firmware, but make it available to comply with the license. The odd thing is I see reference to what looks like and Ender3 v2 which is one that is error looking for the aduino.h
I contacted Sovol and sent them a copy of the terminal readout when I tried to compile Solo’s source code. Their reply was their engineers have no idea what is wrong that I should go on FB and ask there. That ain’t gonna happen, don’t do FB and don’t intend to either.
I assume you compile marlin? If so, just install VisualStudioCode and install the arduino-ide plugin as well as the marlinbuild or buildmarlin (no clue which way around it was). All you need to do is to fetch the latest marlin and dump in the configuration.h for your printer.
You don´t need to change any configuration of arduino-ide or any other files. The BuildMarlin-Plugin will scan the configuration file and select the matching processor and setup the required flash information automagically.
Now click on the BuildMarlin plugin (left panel) and there should be a UI appearing where usually your source files are displayed. There you usually find just a button “build” and some information the plugin gathered from the configuration.h file. Click it and it should work. Sometimes the script has multiple choices. e.g. if a board comes with 8mb or 16mb flash. Those appear in the build marlin plug in UI.
There is no source file configuration required and plain marlin will build. Once it builds. Open the configuration.h and setup your sensor.
The only Marlin I have compiled was the Unified2 firmware from TH3DStudio which has all the setting in it for their EZABL. It will compile without issues. I contacted Sovol and they were no help at all they said it had to be the VS environment. Anyway I’ll definitely try your suggestion @Geit I already have the Marlin extension installed.
I just read your 1st answer a little closer. I get it now use the configuration.h file for my printer and the rest of the files from Marlin and not the ones from Sovol. I will definitely give that a try and see what happens.