ESP32-S2 toolchain installed. Works, suggestions to make it clearer for the user of existing IDF
Posted: Thu Sep 05, 2019 5:34 pm
First of all a big thanks to Espressif to send me the ESP32-S2-Beta-DevKitC it's v1.2r05
I followed the steps described here:
https://esp32.com/viewtopic.php?f=13&t=11265
And so far I have the toolchain working but I see that it's still compiling with the old g++.
As a short introduction although I mostly code my Firmware's in Arduino framework I use the ESP32 toolchain to build my own Mesh-Lamps. So to test this I switched my IDF branch to :
~/esp/esp-idf/examples/get-started/blink$ git status
On branch feature/esp32s2beta
In this example I run like describes the forum post:
And I flash it to the connected ESP32-S2
idf.py -p /dev/ttyUSB0 flash
At the end I got it working and it compiled. But it was hard to discover that the build directories and sdkconfig needs to be completely wiped out in order to run.
And also as a user, is a bit confusing that when you open the sdkconfig you see:
# CONFIG_IDF_TARGET_ESP32 is not set
CONFIG_IDF_TARGET="esp32s2beta"
CONFIG_IDF_TARGET_ESP32S2BETA=y
When the ESP32 target is set
Anyways so far working great. Looking forward running some benchmarking tests and even finding a way to compile a MESH Lamp and to set the WiFi per se (Since there is no Bluetooth)
Would like to know if it's possible to make this even easier so it has more user adoption. Looking forward how far I can go and to learn more of ESP-IDF
By the way I have a couple of questions:
- What is the LED GPIO of this, can I blink a LED?
- Where is the Board Schematic so I can discover more?
Thanks a lot in advance!
I followed the steps described here:
https://esp32.com/viewtopic.php?f=13&t=11265
And so far I have the toolchain working but I see that it's still compiling with the old g++.
Code: Select all
$ idf.py -p /dev/ttyUSB0 flash
Checking Python dependencies...
Python requirements from /home/martin/esp/esp-idf/requirements.txt are satisfied.
Adding flash's dependency "all" to list of actions
Executing action: all (aliases: build)
Running cmake in directory /home/martin/esp/esp-idf/examples/get-started/blink/build
Executing "cmake -G Ninja -DPYTHON_DEPS_CHECKED=1 -DESP_PLATFORM=1 --warn-uninitialized /home/martin/esp/esp-idf/examples/get-started/blink"...
Warn about uninitialized values.
-- Found Git: /usr/bin/git (found version "2.17.1")
-- IDF_TARGET not set, using default target: esp32
-- ccache will be used for faster builds
-- The C compiler identification is GNU 5.2.0
-- The CXX compiler identification is GNU 5.2.0
-- The ASM compiler identification is GNU
-- Found assembler: /home/martin/esp/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc
-- Check for working C compiler: /home/martin/esp/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc
-- Check for working C compiler: /home/martin/esp/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /home/martin/esp/xtensa-esp32-elf/bin/xtensa-esp32-elf-g++
~/esp/esp-idf/examples/get-started/blink$ git status
On branch feature/esp32s2beta
In this example I run like describes the forum post:
Code: Select all
rm -rf sdkconfig build
idf.py -D IDF_TARGET=esp32s2beta menuconfig
idf.py build
idf.py -p /dev/ttyUSB0 flash
At the end I got it working and it compiled. But it was hard to discover that the build directories and sdkconfig needs to be completely wiped out in order to run.
And also as a user, is a bit confusing that when you open the sdkconfig you see:
# CONFIG_IDF_TARGET_ESP32 is not set
CONFIG_IDF_TARGET="esp32s2beta"
CONFIG_IDF_TARGET_ESP32S2BETA=y
When the ESP32 target is set
Anyways so far working great. Looking forward running some benchmarking tests and even finding a way to compile a MESH Lamp and to set the WiFi per se (Since there is no Bluetooth)
Would like to know if it's possible to make this even easier so it has more user adoption. Looking forward how far I can go and to learn more of ESP-IDF
By the way I have a couple of questions:
- What is the LED GPIO of this, can I blink a LED?
- Where is the Board Schematic so I can discover more?
Thanks a lot in advance!