Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ESP-IDF Version to Build 0.5.4? #47

Open
niabassey opened this issue Oct 13, 2021 · 1 comment
Open

ESP-IDF Version to Build 0.5.4? #47

niabassey opened this issue Oct 13, 2021 · 1 comment

Comments

@niabassey
Copy link

What version of ESP-IDF are you using to build v0.5.4?

@pbrier
Copy link

pbrier commented Jan 23, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants