Open niabassey opened 2 years ago
I used an official ESP IDF docker container, (version 4.3 as mentioned in the logs of the running firmware v0.5.4
) but the button
component source is not found (not checked in source tree), so we need to download that also
Used commands to build:
$ git clone https://github.com/nebkat/esp32-button.git
$ git clone https://github.com/nebkat/esp32-xbee.git
$ cd esp32-xbee
$ cp -r ../esp32-button/* components/button
$ docker run --rm -v $PWD:/project -w /project espressif/idf:v4.3 idf.py build
And I was able to build from source!
To flash, we assume idftool.py
is installed locally on the host (assuming the port is /dev/ttyUSB0
:
$ esptool.py -p /dev/ttyUSB0 -b 460800 --before default_reset --after hard_reset --chip esp32 write_flash --flash_mode dio --flash_size detect --flash_freq 40m 0x1000 build/bootloader/bootloader.bin 0x8000 build/partition_table/partition-table.bin 0x10000 build/esp32-xbee.bin 0x210000 build/www.bin
Or via the docker container on Linux (mapping serial port ``/dev/ttyUSB0``` in docker container):
docker run -it --rm --device=/dev/ttyUSB0 -v $PWD:/project -w /project espressif/idf:v4.3 idf.py -p /dev/ttyUSB0 flash
What version of ESP-IDF are you using to build v0.5.4?