因为在64位系统下,arduino或者说esp32 core获取的位置是运行时的相对位置如:{runtime.tools.xtensa-esp32-elf-gcc.path}
所以即使xtensa-esp32-elf-g++.exe存在,系统实际是找不到的
解决办法:
找到hardware/espressif/esp32/下的plafrom.txt,修改compiler.path={runtime.tools.xtensa-esp32-elf-gcc.path}/bin/(第23行)为绝对路径或者{runtime.platform.path}/tools/xtensa-esp32-elf/bin
同理,如果esptools无法找到,修改tools.esptool_py.path(第6行)这一项为绝对路径或者{runtime.platform.path}/tools/esptool/