I have been trying to compile the Blink example to determine if my LoRa Gateway 1 Channel (WRL-15006) is connected properly. I am using Windows 10 on a PC with the Arduino IDE 1.8.13. The complier reports this error: exec: “/bin/xtensa-esp32-elf-g++”: file does not exist. I cannot determine what this file is or where it should exist. I followed the instructions on the Sparkfun hookup guide very carefully. Any help?
For further information, I have included the verbose output of the compiler below:
Arduino: 1.8.13 (Windows Store 1.8.42.0) (Windows 10), Board: “SparkFun LoRa Gateway 1-Channel, Default, QIO, 80MHz, 4MB (32Mb), 921600”
C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.42.0_x86__mdqgnx93n4wtt\arduino-builder -dump-prefs -logger=machine -hardware C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.42.0_x86__mdqgnx93n4wtt\hardware -hardware C:\Users\Todd\Documents\ArduinoData\packages -tools C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.42.0_x86__mdqgnx93n4wtt\tools-builder -tools C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.42.0_x86__mdqgnx93n4wtt\hardware\tools\avr -tools C:\Users\Todd\Documents\ArduinoData\packages -built-in-libraries C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.42.0_x86__mdqgnx93n4wtt\libraries -libraries C:\Users\Todd\Documents\Arduino\libraries -fqbn=SparkFun:esp32:sparkfun_lora_gateway_1-channel:PartitionScheme=default,FlashMode=qio,FlashFreq=80,FlashSize=4M,UploadSpeed=921600 -vid-pid=1A86_7523 -ide-version=10813 -build-path C:\Users\Todd\AppData\Local\Temp\arduino_build_331387 -warnings=none -build-cache C:\Users\Todd\AppData\Local\Temp\arduino_cache_178407 -prefs=build.warn_data_percentage=75 -verbose C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.42.0_x86__mdqgnx93n4wtt\examples\01.Basics\Blink\Blink.ino
C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.42.0_x86__mdqgnx93n4wtt\arduino-builder -compile -logger=machine -hardware C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.42.0_x86__mdqgnx93n4wtt\hardware -hardware C:\Users\Todd\Documents\ArduinoData\packages -tools C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.42.0_x86__mdqgnx93n4wtt\tools-builder -tools C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.42.0_x86__mdqgnx93n4wtt\hardware\tools\avr -tools C:\Users\Todd\Documents\ArduinoData\packages -built-in-libraries C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.42.0_x86__mdqgnx93n4wtt\libraries -libraries C:\Users\Todd\Documents\Arduino\libraries -fqbn=SparkFun:esp32:sparkfun_lora_gateway_1-channel:PartitionScheme=default,FlashMode=qio,FlashFreq=80,FlashSize=4M,UploadSpeed=921600 -vid-pid=1A86_7523 -ide-version=10813 -build-path C:\Users\Todd\AppData\Local\Temp\arduino_build_331387 -warnings=none -build-cache C:\Users\Todd\AppData\Local\Temp\arduino_cache_178407 -prefs=build.warn_data_percentage=75 -verbose C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.42.0_x86__mdqgnx93n4wtt\examples\01.Basics\Blink\Blink.ino
Using board ‘sparkfun_lora_gateway_1-channel’ from platform in folder: C:\Users\Todd\Documents\ArduinoData\packages\SparkFun\hardware\esp32\1.0.0
Using core ‘esp32’ from platform in folder: C:\Users\Todd\Documents\ArduinoData\packages\SparkFun\hardware\esp32\1.0.0
Detecting libraries used…
/bin/xtensa-esp32-elf-g++ -DESP_PLATFORM “-DMBEDTLS_CONFIG_FILE="mbedtls/esp_config.h"” -DHAVE_CONFIG_H -DGCC_NOT_5_2_0=0 -DWITH_POSIX “-IC:\Users\Todd\Documents\ArduinoData\packages\SparkFun\hardware\esp32\1.0.0/tools/sdk/include/config” “-IC:\Users\Todd\Documents\ArduinoData\packages\SparkFun\hardware\esp32\1.0.0/tools/sdk/include/app_trace” “-IC:\Users\Todd\Documents\ArduinoData\packages\SparkFun\hardware\esp32\1.0.0/tools/sdk/include/app_update” “-IC:\Users\Todd\Documents\ArduinoData\packages\SparkFun\hardware\esp32\1.0.0/tools/sdk/include/asio” “-IC:\Users\Todd\Documents\ArduinoData\packages\SparkFun\hardware\esp32\1.0.0/tools/sdk/include/bootloader_support” “-IC:\Users\Todd\Documents\ArduinoData\packages\SparkFun\hardware\esp32\1.0.0/tools/sdk/include/bt” “-IC:\Users\Todd\Documents\ArduinoData\packages\SparkFun\hardware\esp32\1.0.0/tools/sdk/include/coap” “-IC:\Users\Todd\Documents\ArduinoData\packages\SparkFun\hardware\esp32\1.0.0/tools/sdk/include/console” “-IC:\Users\Todd\Documents\ArduinoData\packages\SparkFun\hardware\esp32\1.0.0/tools/sdk/include/driver” “-IC:\Users\Todd\Documents\ArduinoData\packages\SparkFun\hardware\esp32\1.0.0/tools/sdk/include/esp-tls” “-IC:\Users\Todd\Documents\ArduinoData\packages\SparkFun\hardware\esp32\1.0.0/tools/sdk/include/esp32” “-IC:\Users\Todd\Documents\ArduinoData\packages\SparkFun\hardware\esp32\1.0.0/tools/sdk/include/esp_adc_cal” “-IC:\Users\Todd\Documents\ArduinoData\packages\SparkFun\hardware\esp32\1.0.0/tools/sdk/include/esp_event” “-IC:\Users\Todd\Documents\ArduinoData\packages\SparkFun\hardware\esp32\1.0.0/tools/sdk/include/esp_http_client” “-IC:\Users\Todd\Documents\ArduinoData\packages\SparkFun\hardware\esp32\1.0.0/tools/sdk/include/esp_http_server” “-IC:\Users\Todd\Documents\ArduinoData\packages\SparkFun\hardware\esp32\1.0.0/tools/sdk/include/esp_https_ota” “-IC:\Users\Todd\Documents\ArduinoData\packages\SparkFun\hardware\esp32\1.0.0/tools/sdk/include/esp_ringbuf” “-IC:\Users\Todd\Documents\ArduinoData\packages\SparkFun\hardware\esp32\1.0.0/tools/sdk/include/ethernet” “-IC:\Users\Todd\Documents\ArduinoData\packages\SparkFun\hardware\esp32\1.0.0/tools/sdk/include/expat” “-IC:\Users\Todd\Documents\ArduinoData\packages\SparkFun\hardware\esp32\1.0.0/tools/sdk/include/fatfs” “-IC:\Users\Todd\Documents\ArduinoData\packages\SparkFun\hardware\esp32\1.0.0/tools/sdk/include/freemodbus” “-IC:\Users\Todd\Documents\ArduinoData\packages\SparkFun\hardware\esp32\1.0.0/tools/sdk/include/freertos” “-IC:\Users\Todd\Documents\ArduinoData\packages\SparkFun\hardware\esp32\1.0.0/tools/sdk/include/heap” “-IC:\Users\Todd\Documents\ArduinoData\packages\SparkFun\hardware\esp32\1.0.0/tools/sdk/include/idf_test” “-IC:\Users\Todd\Documents\ArduinoData\packages\SparkFun\hardware\esp32\1.0.0/tools/sdk/include/jsmn” “-IC:\Users\Todd\Documents\ArduinoData\packages\SparkFun\hardware\esp32\1.0.0/tools/sdk/include/json” “-IC:\Users\Todd\Documents\ArduinoData\packages\SparkFun\hardware\esp32\1.0.0/tools/sdk/include/libsodium” “-IC:\Users\Todd\Documents\ArduinoData\packages\SparkFun\hardware\esp32\1.0.0/tools/sdk/include/log” “-IC:\Users\Todd\Documents\ArduinoData\packages\SparkFun\hardware\esp32\1.0.0/tools/sdk/include/lwip” “-IC:\Users\Todd\Documents\ArduinoData\packages\SparkFun\hardware\esp32\1.0.0/tools/sdk/include/mbedtls” “-IC:\Users\Todd\Documents\ArduinoData\packages\SparkFun\hardware\esp32\1.0.0/tools/sdk/include/mdns” “-IC:\Users\Todd\Documents\ArduinoData\packages\SparkFun\hardware\esp32\1.0.0/tools/sdk/include/micro-ecc” “-IC:\Users\Todd\Documents\ArduinoData\packages\SparkFun\hardware\esp32\1.0.0/tools/sdk/include/mqtt” “-IC:\Users\Todd\Documents\ArduinoData\packages\SparkFun\hardware\esp32\1.0.0/tools/sdk/include/newlib” “-IC:\Users\Todd\Documents\ArduinoData\packages\SparkFun\hardware\esp32\1.0.0/tools/sdk/include/nghttp” “-IC:\Users\Todd\Documents\ArduinoData\packages\SparkFun\hardware\esp32\1.0.0/tools/sdk/include/nvs_flash” “-IC:\Users\Todd\Documents\ArduinoData\packages\SparkFun\hardware\esp32\1.0.0/tools/sdk/include/openssl” “-IC:\Users\Todd\Documents\ArduinoData\packages\SparkFun\hardware\esp32\1.0.0/tools/sdk/include/protobuf-c” “-IC:\Users\Todd\Documents\ArduinoData\packages\SparkFun\hardware\esp32\1.0.0/tools/sdk/include/protocomm” “-IC:\Users\Todd\Documents\ArduinoData\packages\SparkFun\hardware\esp32\1.0.0/tools/sdk/include/pthread” “-IC:\Users\Todd\Documents\ArduinoData\packages\SparkFun\hardware\esp32\1.0.0/tools/sdk/include/sdmmc” “-IC:\Users\Todd\Documents\ArduinoData\packages\SparkFun\hardware\esp32\1.0.0/tools/sdk/include/smartconfig_ack” “-IC:\Users\Todd\Documents\ArduinoData\packages\SparkFun\hardware\esp32\1.0.0/tools/sdk/include/soc” “-IC:\Users\Todd\Documents\ArduinoData\packages\SparkFun\hardware\esp32\1.0.0/tools/sdk/include/spi_flash” “-IC:\Users\Todd\Documents\ArduinoData\packages\SparkFun\hardware\esp32\1.0.0/tools/sdk/include/spiffs” “-IC:\Users\Todd\Documents\ArduinoData\packages\SparkFun\hardware\esp32\1.0.0/tools/sdk/include/tcp_transport” “-IC:\Users\Todd\Documents\ArduinoData\packages\SparkFun\hardware\esp32\1.0.0/tools/sdk/include/tcpip_adapter” “-IC:\Users\Todd\Documents\ArduinoData\packages\SparkFun\hardware\esp32\1.0.0/tools/sdk/include/ulp” “-IC:\Users\Todd\Documents\ArduinoData\packages\SparkFun\hardware\esp32\1.0.0/tools/sdk/include/vfs” “-IC:\Users\Todd\Documents\ArduinoData\packages\SparkFun\hardware\esp32\1.0.0/tools/sdk/include/wear_levelling” “-IC:\Users\Todd\Documents\ArduinoData\packages\SparkFun\hardware\esp32\1.0.0/tools/sdk/include/wifi_provisioning” “-IC:\Users\Todd\Documents\ArduinoData\packages\SparkFun\hardware\esp32\1.0.0/tools/sdk/include/wpa_supplicant” “-IC:\Users\Todd\Documents\ArduinoData\packages\SparkFun\hardware\esp32\1.0.0/tools/sdk/include/xtensa-debug-module” “-IC:\Users\Todd\Documents\ArduinoData\packages\SparkFun\hardware\esp32\1.0.0/tools/sdk/include/esp-face” “-IC:\Users\Todd\Documents\ArduinoData\packages\SparkFun\hardware\esp32\1.0.0/tools/sdk/include/esp32-camera” “-IC:\Users\Todd\Documents\ArduinoData\packages\SparkFun\hardware\esp32\1.0.0/tools/sdk/include/esp-face” “-IC:\Users\Todd\Documents\ArduinoData\packages\SparkFun\hardware\esp32\1.0.0/tools/sdk/include/fb_gfx” -std=gnu++11 -Os -g3 -Wpointer-arith -fexceptions -fstack-protector -ffunction-sections -fdata-sections -fstrict-volatile-bitfields -mlongcalls -nostdlib -w -Wno-error=maybe-uninitialized -Wno-error=unused-function -Wno-error=unused-but-set-variable -Wno-error=unused-variable -Wno-error=deprecated-declarations -Wno-unused-parameter -Wno-unused-but-set-parameter -Wno-missing-field-initializers -Wno-sign-compare -fno-rtti -c -w -x c++ -E -CC -DF_CPU=240000000L -DARDUINO=10813 -DARDUINO_ESP32_DEV -DARDUINO_ARCH_ESP32 “-DARDUINO_BOARD="ESP32_DEV"” “-DARDUINO_VARIANT="sparkfun_lora_gateway_1-channel"” -DESP32 -DCORE_DEBUG_LEVEL=0 “-IC:\Users\Todd\Documents\ArduinoData\packages\SparkFun\hardware\esp32\1.0.0\cores\esp32” “-IC:\Users\Todd\Documents\ArduinoData\packages\SparkFun\hardware\esp32\1.0.0\variants\sparkfun_lora_gateway_1-channel” “C:\Users\Todd\AppData\Local\Temp\arduino_build_331387\sketch\Blink.ino.cpp” -o nul -DARDUINO_LIB_DISCOVERY_PHASE
exec: “/bin/xtensa-esp32-elf-g++”: file does not exist
Error compiling for board SparkFun LoRa Gateway 1-Channel.
Problem Solved!
Took these steps:
Added this to the Additional Board Manager URLs field of the preferences window:
https://dl.espressif.com/dl/package_esp32_index.json
even though this was already there:
https://raw.githubusercontent.com/spark … index.json and the Sparkfun LoRa Gateway 1-Channel board was already showing up under the Tools+Board menu
So not sure if that made any difference.
Then I went to Tools+Board+Boards Manager and added the Espressif System version 1.0.4 esp32 boards, even though I had already installed the Sparkfun ESP32 Boards there. Not sure that made any difference, either.
Next I changed my board to the Sparkfun ESP32 Thing board. With no board connected to the serial port of the computer, I was able to compile Blink for the ESP32 Thing board.
I changed the board selection back to the LoRa Gateway 1-channel. The Blink sketch would then compile.