Articles Hierarchy

Articles Home » RPI » ESP32 from RPI

ESP32 from RPI

i had problems using Arduino IDE
( Raspberry Pi 3 / Raspbian STRETCH )
while on win7 PC all works well, and also ESP8266 compile upload OK
there is no tool chain for ESP32 until now.
come from here

here some things i try:

searching i found here
a compiled toolchain download
that i copy into arduino ide esp32..

just to compare with that dir for ESP8266

now can compile but still error

funny i see that info there:
Postby ESP_igrr ยป Thu Sep 29, 2016 11:16 am
Regarding ESP32 toolchain for Linux ARM hosts: thanks for a reminder, I will add it to the list of pre-built toolchains.

so, if i can not use Arduino IDE i could possibly use:
ESP32 tool chain video ( also neilkorban )
i follow the video, the littlebit different description and some info from "testers"
( i setup a new RASPBIAN STRETCH on USB stick just for test this here)
mkdir esp32
cd esp32
sudo tar --extract --directory /opt --ungzip --file xtensa-esp32-elf.tar.gz

sudo tar --extract --directory /opt --file xtensa-esp32-elf.tar.gz

xtensa-esp32-elf-cc test compiler start, error but shows that compiler is starting
git clone --recursive
cd esp-idf
git submodule update --init
cd ..
export IDF_PATH=~/esp32/esp-idf
git clone myapp
cd myapp

many error until i got this right:
sudo apt-get install -y libncurses-dev flex bison gperf
make menuconfig

make -j5
WARNING: Toolchain version is not supported: crosstool-NG crosstool-ng-1.22.0-59-g8d95cad
Expected to see version: crosstool-NG crosstool-ng-1.22.0-61-gab8375a
Please check ESP-IDF setup instructions and update the toolchain, or proceed at your own risk.
WARNING: Compiler version is not supported: 4.8.5
Expected to see version(s): 5.2.0
Please check ESP-IDF setup instructions and update the toolchain, or proceed at your own risk.
/home/pi/esp32/esp-idf/components/bootloader/subproject/main/./bootloader_start.c: In function 'bootloader_main':
/home/pi/esp32/esp-idf/components/bootloader/subproject/main/./bootloader_start.c:438:5: error: missing braces around initializer [-Werror=missing-braces]
bootloader_state_t bs = { 0 };
error: (near initialization for 'bs.ota_info') [-Werror=missing-braces]
warning: missing initializer for field 'factory' of 'bootloader_state_t' [-Wmissing-field-initializers]
In file included from /home/pi/esp32/esp-idf/components/bootloader/subproject/main/./bootloader_start.c:50:0:
note: 'factory' declared here
esp_partition_pos_t factory;
CC build/coap/port/coap_io_socket.o
cc1: some warnings being treated as errors
/home/pi/esp32/esp-idf/make/ recipe for target 'bootloader_start.o' failed
make[2]: *** [bootloader_start.o] Error 1
/home/pi/esp32/esp-idf/make/ recipe for target 'component-main-build' failed
make[1]: *** [component-main-build] Error 2
/home/pi/esp32/esp-idf/components/bootloader/Makefile.projbuild:39: recipe for target '/home/pi/esp32/myapp/build/bootloader/bootloader.bin' failed
make: *** [/home/pi/esp32/myapp/build/bootloader/bootloader.bin] Error 2
make: *** Waiting for unfinished jobs....

so, not lucky with that too.