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

[ESP32] Fix the docs when upgrading to esp-idf v5.1 #28570

Merged
merged 1 commit into from
Aug 8, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 11 additions & 10 deletions docs/guides/esp32/setup_idf_chip.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,21 +22,22 @@ step.
[v5.1 release](https://github.com/espressif/esp-idf/releases/tag/v5.1)

```
$ git clone -b v5.1 --recursive --depth 1 --shallow-submodule https://github.com/espressif/esp-idf.git
$ cd esp-idf
$ ./install.sh
git clone -b v5.1 --recursive --depth 1 --shallow-submodule https://github.com/espressif/esp-idf.git
cd esp-idf
./install.sh
```

- To update an existing esp-idf toolchain to v5.1:

```
$ cd path/to/esp-idf
$ git fetch origin
$ git checkout v5.1
$ git reset --hard origin/v5.1
$ git submodule update --recursive --init
$ git clean -fdx
$ ./install.sh
cd path/to/esp-idf
git fetch --depth 1 origin v5.1
git reset --hard FETCH_HEAD
git submodule update --depth 1 --recursive --init

# -ff is for cleaning untracked files as well as submodules
git clean -ffdx
./install.sh
```

## Setup Matter environment
Expand Down