Well you cloned master
at some point and used it some time in the past, now since you’ve reinstalled it it will have pulled master
again, which has now gotten much further. You can try and estimate at which date you’ve initially pulled master
and then use a commit hash from Commits · espressif/arduino-esp32 · GitHub accordingly instead of master
in the platformio.ini
The other possibility is to try and make it now work with latest master. My hunch is that the errors have something to do with a now new toolchain being used and all that is needed is the same update. In the manifest https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_dev_index.json, the toolchains are listed. In the "version": "2.0.0-rc1",
section it references gcc8_4_0-esp-2021r1
as its toolchain, differing to gcc8_4_0-crosstool-ng-1.24.0-123-g64eb9ff
in the 2.0.0-alpha1
version.
The MacOS download link is listed further down in the manifest as
You would need to download that, extract it somewhere on the harddrive, then in the main folder where the bin
, include
folder etc. is, copy the old package.json
from /Users/bob/.platformio/packages/toolchain-riscv-esp/package.json
in it. Then, reference the new toolchain by adapting the platform_packages
expression with the path to the folder where the package.json
is with the file://
protocol.
platform_packages =
toolchain-riscv-esp@file:///User/bob/Downloads/extracted_riscv32_toolchain
framework-arduinoespressif32@https://github.com/espressif/arduino-esp32.git#master
platformio/tool-esptoolpy @ ~1.30100