Skip to content

Commit 9d01de8

Browse files
committed
Flashing done
1 parent 7efd3e1 commit 9d01de8

File tree

4 files changed

+93
-0
lines changed

4 files changed

+93
-0
lines changed
1.55 MB
Loading
1.46 MB
Loading
9.08 MB
Loading

content/hardware/03.nano/boards/nano-matter/tutorials/open-thread-border-router/content.md

Lines changed: 93 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,99 @@ Use the following command to flash the firmware to the Arduino Nano Matter, make
131131

132132
### The Matter Controller: Arduino Nano ESP32
133133

134+
To set up the environment for the ESP32 firmware development use the following commands on a **Linux computer**.
135+
136+
- Install dependencies (Ubuntu and Debian):
137+
138+
```bash
139+
sudo apt-get install git wget flex bison gperf python3 python3-pip python3-venv cmake ninja-build ccache libffi-dev libssl-dev dfu-util libusb-1.0-0
140+
```
141+
142+
***If you are using a different Linux distribution, search for the right commands [here](https://docs.espressif.com/projects/esp-idf/en/stable/esp32s3/get-started/linux-macos-setup.html#for-linux-users).***
143+
144+
- Install the **ESP-IDF**:
145+
146+
```bash
147+
git clone -b v5.1.2 --recursive https://github.com/espressif/esp-idf.git
148+
cd esp-idf
149+
./install.sh
150+
. ./export.sh
151+
```
152+
153+
- Clone the ESP Thread Border Router example repository:
154+
155+
```bash
156+
git clone -b v1.0 --recursive https://github.com/espressif/esp-thread-br.git
157+
cd /esp-thread-br/examples/basic_thread_border_router/
158+
```
159+
- For the `sdkconfig` file to be generated, and we can later modify it with our Nano ESP32 custom settings, set the device target from the command line:
160+
161+
```dash
162+
idf.py set-target esp32s3
163+
```
164+
165+
Using a **code editor**, open the `sdkconfig` file located in `esp-thread-br/examples/basic_thread_border_router/sdkconfig` and do the following modifications:
166+
167+
- Update the Wi-Fi credentials with your network `SSID` and `Password`:
168+
169+
```bash
170+
CONFIG_EXAMPLE_WIFI_SSID="<your-wifi-ssid>"
171+
CONFIG_EXAMPLE_WIFI_PASSWORD="<your-wifi-password>"
172+
```
173+
174+
- Modify the Serial pinout so it matches with the Arduino Nano layout:
175+
176+
```bash
177+
CONFIG_PIN_TO_RCP_TX=43
178+
CONFIG_PIN_TO_RCP_RX=44
179+
```
180+
181+
- Disable the RCP firmware auto-update verifying this parameter is not set:
182+
183+
```bash
184+
# CONFIG_OPENTHREAD_BR_AUTO_UPDATE_RCP=y
185+
```
186+
187+
- Enable the OpenThread webserver:
188+
189+
```bash
190+
CONFIG_OPENTHREAD_BR_START_WEB=y
191+
```
192+
193+
- Enable OpenThread commissioner and joiner:
194+
195+
```bash
196+
CONFIG_OPENTHREAD_COMMISSIONER=y
197+
CONFIG_OPENTHREAD_JOINER=y
198+
```
199+
200+
- Navigate to `esp-thread-br/examples/basic_thread_border_router/main/esp_ot_config.h`.
201+
202+
- Modify the Serial port baud rate to `115200`, the result should look like this:
203+
204+
![Baud rate configuration update](assets/baud-rate.png)
205+
206+
- Navigate to `esp-thread-br/examples/common/thread_border_router/src/border_router_launch.c`.
207+
208+
- Disable the ESP RCP update process by commenting the following line of the `border_router_launch.c` file, the result should look like this:
209+
210+
![RCP auto update disabling](assets/auto-update.png)
211+
212+
- Go back to the `basic_thread_border_router` example folder and build the firmware:
213+
214+
```bash
215+
cd esp-thread-br/examples/basic_thread_border_router
216+
idf.py build
217+
```
218+
219+
- When the build is completed, flash the Nano ESP32:
220+
221+
```bash
222+
idf.py -p /dev/ttyACM0 flash monitor
223+
```
224+
225+
![Flashing process](assets/esp-flash-2.gif)
226+
134227
### The CHIP Tool: Linux Computer
135228

136229
## Testing the OTBR

0 commit comments

Comments
 (0)