Page 1 of 1

myError Thingy

Posted: Thu Aug 02, 2018 2:03 pm
by idahowalker
Arduino: 1.8.5 (Linux), Board: "ESP32 Dev Module, Disabled, Default, QIO, 80MHz, 4MB (32Mb), 115200, None"

/home/pi/arduino-1.8.5/arduino-builder -dump-prefs -logger=machine -hardware /home/pi/arduino-1.8.5/hardware -hardware /home/pi/.arduino15/packages -hardware /home/pi/Arduino/hardware -tools /home/pi/arduino-1.8.5/tools-builder -tools /home/pi/arduino-1.8.5/hardware/tools/avr -tools /home/pi/.arduino15/packages -built-in-libraries /home/pi/arduino-1.8.5/libraries -libraries /home/pi/Arduino/libraries -fqbn=espressif:esp32:esp32:PSRAM=disabled,PartitionScheme=default,FlashMode=qio,FlashFreq=80,FlashSize=4M,UploadSpeed=115200,DebugLevel=none -ide-version=10805 -build-path /tmp/arduino_build_510417 -warnings=none -build-cache /tmp/arduino_cache_907881 -prefs=build.warn_data_percentage=75 -verbose /home/pi/Documents/ESP32/Timer_Test0/Timer_Test0.ino
/home/pi/arduino-1.8.5/arduino-builder -compile -logger=machine -hardware /home/pi/arduino-1.8.5/hardware -hardware /home/pi/.arduino15/packages -hardware /home/pi/Arduino/hardware -tools /home/pi/arduino-1.8.5/tools-builder -tools /home/pi/arduino-1.8.5/hardware/tools/avr -tools /home/pi/.arduino15/packages -built-in-libraries /home/pi/arduino-1.8.5/libraries -libraries /home/pi/Arduino/libraries -fqbn=espressif:esp32:esp32:PSRAM=disabled,PartitionScheme=default,FlashMode=qio,FlashFreq=80,FlashSize=4M,UploadSpeed=115200,DebugLevel=none -ide-version=10805 -build-path /tmp/arduino_build_510417 -warnings=none -build-cache /tmp/arduino_cache_907881 -prefs=build.warn_data_percentage=75 -verbose /home/pi/Documents/ESP32/Timer_Test0/Timer_Test0.ino
Using board 'esp32' from platform in folder: /home/pi/Arduino/hardware/espressif/esp32
Using core 'esp32' from platform in folder: /home/pi/Arduino/hardware/espressif/esp32
Detecting libraries used...
"/home/pi/Arduino/hardware/espressif/esp32/tools/xtensa-esp32-elf/bin/xtensa-esp32-elf-g++" -DESP_PLATFORM -DMBEDTLS_CONFIG_FILE="mbedtls/esp_config.h" -DHAVE_CONFIG_H "-I/home/pi/Arduino/hardware/espressif/esp32/tools/sdk/include/config" "-I/home/pi/Arduino/hardware/espressif/esp32/tools/sdk/include/bluedroid" "-I/home/pi/Arduino/hardware/espressif/esp32/tools/sdk/include/bluedroid/api" "-I/home/pi/Arduino/hardware/espressif/esp32/tools/sdk/include/app_trace" "-I/home/pi/Arduino/hardware/espressif/esp32/tools/sdk/include/app_update" "-I/home/pi/Arduino/hardware/espressif/esp32/tools/sdk/include/bootloader_support" "-I/home/pi/Arduino/hardware/espressif/esp32/tools/sdk/include/bt" "-I/home/pi/Arduino/hardware/espressif/esp32/tools/sdk/include/driver" "-I/home/pi/Arduino/hardware/espressif/esp32/tools/sdk/include/esp32" "-I/home/pi/Arduino/hardware/espressif/esp32/tools/sdk/include/esp_adc_cal" "-I/home/pi/Arduino/hardware/espressif/esp32/tools/sdk/include/esp_http_client" "-I/home/pi/Arduino/hardware/espressif/esp32/tools/sdk/include/esp-tls" "-I/home/pi/Arduino/hardware/espressif/esp32/tools/sdk/include/ethernet" "-I/home/pi/Arduino/hardware/espressif/esp32/tools/sdk/include/fatfs" "-I/home/pi/Arduino/hardware/espressif/esp32/tools/sdk/include/freertos" "-I/home/pi/Arduino/hardware/espressif/esp32/tools/sdk/include/heap" "-I/home/pi/Arduino/hardware/espressif/esp32/tools/sdk/include/jsmn" "-I/home/pi/Arduino/hardware/espressif/esp32/tools/sdk/include/log" "-I/home/pi/Arduino/hardware/espressif/esp32/tools/sdk/include/mdns" "-I/home/pi/Arduino/hardware/espressif/esp32/tools/sdk/include/mbedtls" "-I/home/pi/Arduino/hardware/espressif/esp32/tools/sdk/include/mbedtls_port" "-I/home/pi/Arduino/hardware/espressif/esp32/tools/sdk/include/newlib" "-I/home/pi/Arduino/hardware/espressif/esp32/tools/sdk/include/nvs_flash" "-I/home/pi/Arduino/hardware/espressif/esp32/tools/sdk/include/openssl" "-I/home/pi/Arduino/hardware/espressif/esp32/tools/sdk/include/spi_flash" "-I/home/pi/Arduino/hardware/espressif/esp32/tools/sdk/include/sdmmc" "-I/home/pi/Arduino/hardware/espressif/esp32/tools/sdk/include/smartconfig_ack" "-I/home/pi/Arduino/hardware/espressif/esp32/tools/sdk/include/spiffs" "-I/home/pi/Arduino/hardware/espressif/esp32/tools/sdk/include/tcpip_adapter" "-I/home/pi/Arduino/hardware/espressif/esp32/tools/sdk/include/ulp" "-I/home/pi/Arduino/hardware/espressif/esp32/tools/sdk/include/vfs" "-I/home/pi/Arduino/hardware/espressif/esp32/tools/sdk/include/wear_levelling" "-I/home/pi/Arduino/hardware/espressif/esp32/tools/sdk/include/xtensa-debug-module" "-I/home/pi/Arduino/hardware/espressif/esp32/tools/sdk/include/coap" "-I/home/pi/Arduino/hardware/espressif/esp32/tools/sdk/include/console" "-I/home/pi/Arduino/hardware/espressif/esp32/tools/sdk/include/expat" "-I/home/pi/Arduino/hardware/espressif/esp32/tools/sdk/include/json" "-I/home/pi/Arduino/hardware/espressif/esp32/tools/sdk/include/lwip" "-I/home/pi/Arduino/hardware/espressif/esp32/tools/sdk/include/newlib" "-I/home/pi/Arduino/hardware/espressif/esp32/tools/sdk/include/nghttp" "-I/home/pi/Arduino/hardware/espressif/esp32/tools/sdk/include/soc" "-I/home/pi/Arduino/hardware/espressif/esp32/tools/sdk/include/wpa_supplicant" -std=gnu++11 -fno-exceptions -Os -g3 -Wpointer-arith -fexceptions -fstack-protector -ffunction-sections -fdata-sections -fstrict-volatile-bitfields -mlongcalls -nostdlib -w -Wno-error=unused-function -Wno-error=unused-but-set-variable -Wno-error=unused-variable -Wno-error=deprecated-declarations -Wno-unused-parameter -Wno-sign-compare -fno-rtti -c -w -x c++ -E -CC -DF_CPU=240000000L -DARDUINO=10805 -DARDUINO_ESP32_DEV -DARDUINO_ARCH_ESP32 -DARDUINO_BOARD="ESP32_DEV" -DARDUINO_VARIANT="esp32" -DESP32 -DCORE_DEBUG_LEVEL=0 "-I/home/pi/Arduino/hardware/espressif/esp32/cores/esp32" "-I/home/pi/Arduino/hardware/espressif/esp32/variants/esp32" "/tmp/arduino_build_510417/sketch/Timer_Test0.ino.cpp" -o "/dev/null"
Generating function prototypes...
"/home/pi/Arduino/hardware/espressif/esp32/tools/xtensa-esp32-elf/bin/xtensa-esp32-elf-g++" -DESP_PLATFORM -DMBEDTLS_CONFIG_FILE="mbedtls/esp_config.h" -DHAVE_CONFIG_H "-I/home/pi/Arduino/hardware/espressif/esp32/tools/sdk/include/config" "-I/home/pi/Arduino/hardware/espressif/esp32/tools/sdk/include/bluedroid" "-I/home/pi/Arduino/hardware/espressif/esp32/tools/sdk/include/bluedroid/api" "-I/home/pi/Arduino/hardware/espressif/esp32/tools/sdk/include/app_trace" "-I/home/pi/Arduino/hardware/espressif/esp32/tools/sdk/include/app_update" "-I/home/pi/Arduino/hardware/espressif/esp32/tools/sdk/include/bootloader_support" "-I/home/pi/Arduino/hardware/espressif/esp32/tools/sdk/include/bt" "-I/home/pi/Arduino/hardware/espressif/esp32/tools/sdk/include/driver" "-I/home/pi/Arduino/hardware/espressif/esp32/tools/sdk/include/esp32" "-I/home/pi/Arduino/hardware/espressif/esp32/tools/sdk/include/esp_adc_cal" "-I/home/pi/Arduino/hardware/espressif/esp32/tools/sdk/include/esp_http_client" "-I/home/pi/Arduino/hardware/espressif/esp32/tools/sdk/include/esp-tls" "-I/home/pi/Arduino/hardware/espressif/esp32/tools/sdk/include/ethernet" "-I/home/pi/Arduino/hardware/espressif/esp32/tools/sdk/include/fatfs" "-I/home/pi/Arduino/hardware/espressif/esp32/tools/sdk/include/freertos" "-I/home/pi/Arduino/hardware/espressif/esp32/tools/sdk/include/heap" "-I/home/pi/Arduino/hardware/espressif/esp32/tools/sdk/include/jsmn" "-I/home/pi/Arduino/hardware/espressif/esp32/tools/sdk/include/log" "-I/home/pi/Arduino/hardware/espressif/esp32/tools/sdk/include/mdns" "-I/home/pi/Arduino/hardware/espressif/esp32/tools/sdk/include/mbedtls" "-I/home/pi/Arduino/hardware/espressif/esp32/tools/sdk/include/mbedtls_port" "-I/home/pi/Arduino/hardware/espressif/esp32/tools/sdk/include/newlib" "-I/home/pi/Arduino/hardware/espressif/esp32/tools/sdk/include/nvs_flash" "-I/home/pi/Arduino/hardware/espressif/esp32/tools/sdk/include/openssl" "-I/home/pi/Arduino/hardware/espressif/esp32/tools/sdk/include/spi_flash" "-I/home/pi/Arduino/hardware/espressif/esp32/tools/sdk/include/sdmmc" "-I/home/pi/Arduino/hardware/espressif/esp32/tools/sdk/include/smartconfig_ack" "-I/home/pi/Arduino/hardware/espressif/esp32/tools/sdk/include/spiffs" "-I/home/pi/Arduino/hardware/espressif/esp32/tools/sdk/include/tcpip_adapter" "-I/home/pi/Arduino/hardware/espressif/esp32/tools/sdk/include/ulp" "-I/home/pi/Arduino/hardware/espressif/esp32/tools/sdk/include/vfs" "-I/home/pi/Arduino/hardware/espressif/esp32/tools/sdk/include/wear_levelling" "-I/home/pi/Arduino/hardware/espressif/esp32/tools/sdk/include/xtensa-debug-module" "-I/home/pi/Arduino/hardware/espressif/esp32/tools/sdk/include/coap" "-I/home/pi/Arduino/hardware/espressif/esp32/tools/sdk/include/console" "-I/home/pi/Arduino/hardware/espressif/esp32/tools/sdk/include/expat" "-I/home/pi/Arduino/hardware/espressif/esp32/tools/sdk/include/json" "-I/home/pi/Arduino/hardware/espressif/esp32/tools/sdk/include/lwip" "-I/home/pi/Arduino/hardware/espressif/esp32/tools/sdk/include/newlib" "-I/home/pi/Arduino/hardware/espressif/esp32/tools/sdk/include/nghttp" "-I/home/pi/Arduino/hardware/espressif/esp32/tools/sdk/include/soc" "-I/home/pi/Arduino/hardware/espressif/esp32/tools/sdk/include/wpa_supplicant" -std=gnu++11 -fno-exceptions -Os -g3 -Wpointer-arith -fexceptions -fstack-protector -ffunction-sections -fdata-sections -fstrict-volatile-bitfields -mlongcalls -nostdlib -w -Wno-error=unused-function -Wno-error=unused-but-set-variable -Wno-error=unused-variable -Wno-error=deprecated-declarations -Wno-unused-parameter -Wno-sign-compare -fno-rtti -c -w -x c++ -E -CC -DF_CPU=240000000L -DARDUINO=10805 -DARDUINO_ESP32_DEV -DARDUINO_ARCH_ESP32 -DARDUINO_BOARD="ESP32_DEV" -DARDUINO_VARIANT="esp32" -DESP32 -DCORE_DEBUG_LEVEL=0 "-I/home/pi/Arduino/hardware/espressif/esp32/cores/esp32" "-I/home/pi/Arduino/hardware/espressif/esp32/variants/esp32" "/tmp/arduino_build_510417/sketch/Timer_Test0.ino.cpp" -o "/tmp/arduino_build_510417/preproc/ctags_target_for_gcc_minus_e.cpp"
fork/exec /home/pi/Arduino/hardware/espressif/esp32/tools/xtensa-esp32-elf/bin/xtensa-esp32-elf-g++: exec format error
Error compiling for board ESP32 Dev Module.
Yea, that is my error message from my Arduino IDE on a Raspberry Pi 3B.

I have tried for many hours, different ways to get the Arduino, to upload a blank sketch to the ESP32. I have tried every board in the board list. No workie. Any insight, advice, suggestions, pointers, tips, and so and so forth would be grand.

Info from large IC on board reads ESP-WROOM-32. Info back of board ESP=32S V1.1

Re: myErrot Thingy

Posted: Fri Aug 03, 2018 5:03 am
by kolban
A wild guess ... but I would look at the binary found here:

/home/pi/Arduino/hardware/espressif/esp32/tools/xtensa-esp32-elf/bin/xtensa-esp32-elf-g++

The CPU architecture of the Pi (if I remember correctly) is an ARM processor. The ESP32 toolchain is designed to build Xtensa architecture executables from source. However, the toolchain itself has to be able to run on the device/machine on which you are compiling. A gut feel is that the toolchain you have on your Pi is for an Intel processor rather than an ARM processor and thus the attempt to execute the C++ compiler is failing because Linux on your Pi is trying to run an x86 binary on an ARM platform.

Re: myError Thingy

Posted: Fri Aug 03, 2018 1:16 pm
by idahowalker
After several attempts, I've not found a ARM install that works. Got any advise on where I may find a 'install' for the Arduino IDE running on an ARM processor, Raspberry Pi 3B?

Also, I been seeing references to installing some serial driver for the ESP32/Arduino... Any ideas on where I can find that driver for the ARM processor?

Re: myError Thingy

Posted: Sat Aug 04, 2018 5:21 am
by kolban
Once upon a time I had a go at building the Xtensa tool-chain from source on a Raspberry Pi. It took a few hours but was (in the end) successful. Everything eventually worked as desired and I ended up with an environment where I could compile and push ESP32 applications built on the PI. I think I wrote up some notes here:

https://www.youtube.com/watch?v=jt0aaMQD1WI

However, as my experience with ESP32 grew, I could no longer answer a basic question (for me) which was why was I doing this?

The power of even a basic PC still out-strips the Pi. If you have a special need for the Pi then great ... but I'm curious as to the underlying reasons. Would you be able to share your thinking?

Re: myError Thingy

Posted: Mon Aug 13, 2018 11:56 pm
by idahowalker
kolban wrote:
The power of even a basic PC still out-strips the Pi. If you have a special need for the Pi then great ... but I'm curious as to the underlying reasons. Would you be able to share your thinking?
I been out on a 7 day backpacking trip to the Frank Church River Of No Return Wilderness, sorry for the delay in getting back to you.

As I was heading up to Bismark Spring from Moose Creek Meadow, a +3K hike up on a 10+ mile trail, I gave your question much thought. My answer is that I thought 'it' would work with the Pi. I built a GPS, using a Arduino Mini Pro and a few other hardware devices. The unit is working good. I wanted to add in some code to convert Lat and Lon to UTM. It became apparent that the Arduino Pro Mini was not up to the task. The ESP32 was recommended to me as well as a 'it will work on the Pi.' Thus, I gave it a try.