From da8aad18a4508476aa041406c0b06f5df4a8e59b Mon Sep 17 00:00:00 2001 From: IhorNehrutsa Date: Fri, 11 Jun 2021 02:20:22 +0300 Subject: [PATCH] esp32/README: Describe how to select compatible version of existing IDF. --- ports/esp32/README.md | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/ports/esp32/README.md b/ports/esp32/README.md index c349f44b27..c7d40070d1 100644 --- a/ports/esp32/README.md +++ b/ports/esp32/README.md @@ -50,10 +50,19 @@ To check out a copy of the IDF use git clone: $ git clone -b v4.0.2 --recursive https://github.com/espressif/esp-idf.git ``` -You can replace `v4.0.2` with `v4.1.1` or any other supported version. +You can replace `v4.0.2` with `v4.1.1` or `v4.2` or any other supported version. (You don't need a full recursive clone; see the `ci_esp32_setup` function in `tools/ci.sh` in this repository for more detailed set-up commands.) +If you already have a copy of the IDF then checkout a version compatible with +MicroPython and update the submodules using: + +```bash +$ cd esp-idf +$ git checkout v4.2 +$ git submodule update --init --recursive +``` + After you've cloned and checked out the IDF to the correct version, run the `install.sh` script: