| 
2 | 2 | 
 
  | 
3 | 3 | ## Build environment  | 
4 | 4 | 
 
  | 
5 |  | -1. Download ESP IDF v4.3.1 SDK version(git commit : 2e74914051d14ec2290fc751a8486fb51d73a31e)  | 
 | 5 | +1. Download ESP IDF v5.0 SDK version from [espressif github](https://github.com/espressif/esp-idf) (checkout release/5.0 branch)  | 
6 | 6 | 
 
  | 
7 |  | -2. Setup ESP32 build environment [guide](https://docs.espressif.com/projects/esp-idf/en/release-v4.3/esp32/get-started/index.html)  | 
 | 7 | +   ```sh  | 
 | 8 | +   $ mkdir -p ~/esp  | 
 | 9 | +   $ cd ~/esp  | 
 | 10 | +   $ git clone -b release/v5.0 --recursive https://github.com/espressif/esp-idf.git  | 
 | 11 | +   ```  | 
8 | 12 | 
 
  | 
9 |  | -## How to build example  | 
 | 13 | +2. Setup ESP32 build environment according to [guide](https://docs.espressif.com/projects/esp-idf/en/release-v5.0/esp32/get-started/index.html)  | 
 | 14 | + | 
 | 15 | +> **_NOTE:_** You can also setup other esp32 series like ESP32-S series, ESP32-C series according to their setup guide.  | 
10 | 16 | 
  | 
11 |  | -1. To test your registered devices on DevWS, replace onboarding_config.json and device.json with yours before build. (Refer [Getting Started](../..//doc/getting_started.md))  | 
 | 17 | +3. Acquire SmartThings Device SDK workflow reading [Getting Started](../../doc/getting_started.md) Document  | 
12 | 18 | 
 
  | 
13 |  | -2. Build this example and flash image on esp32 board.  | 
 | 19 | +## How to build example  | 
 | 20 | + | 
 | 21 | +1. Build this example and flash image on esp32 board. (Please refer [espressif guide](https://docs.espressif.com/projects/esp-idf/en/release-v5.0/esp32/get-started/linux-macos-setup.html#build-the-project))  | 
14 | 22 | 
 
  | 
15 | 23 |    ```sh  | 
16 | 24 |    $ cd st-device-sdk-c/example/esp32  | 
17 | 25 |    $ idf.py build  | 
18 | 26 |    $ idf.py flash  | 
19 | 27 |    ```  | 
20 |  | -3. Run and monitor esp32  | 
 | 28 | +> **_NOTE:_** The examples's default sdkconfig is for esp32 board. To run the example on other esp32 series, change `CONFIG_IDF_TARGET` in sdkconfig with desired target board before build.  | 
 | 29 | +>  | 
 | 30 | +> For example, to run the example on esp32s3 board, change `CONFIG_IDF_TARGET` in sdkconfig file like below.  | 
 | 31 | +>```vim  | 
 | 32 | +>... (Skip) ...  | 
 | 33 | +>CONFIG_IDF_TARGET="esp32s3"  | 
 | 34 | +>... (Skip) ...  | 
 | 35 | +>```  | 
 | 36 | +>You may need to run fullclean to remove previous target board build configuration before building different target.  | 
 | 37 | +>```sh  | 
 | 38 | +>$ idf.py fullclean  | 
 | 39 | +>```  | 
 | 40 | +
  | 
 | 41 | +2. Run and monitor esp32. (Please refer [espressif guide](https://docs.espressif.com/projects/esp-idf/en/release-v5.0/esp32/get-started/linux-macos-setup.html#monitor-the-output))  | 
21 | 42 | 
  | 
22 | 43 |     ```sh  | 
23 | 44 |     $ idf.py monitor  | 
24 | 45 |     ```  | 
25 | 46 | 
  | 
26 |  | -Please refer [Getting Started](../../doc/getting_started.md) guide for testing example with ST app.  | 
 | 47 | +3. To test your registered devices on DevWS, replace onboarding_config.json and device.json under `main` folder with yours before build. (Refer [Getting Started](../..//doc/getting_started.md#update-device-information))  | 
 | 48 | +
  | 
 | 49 | +
  | 
 | 50 | +Please refer [Getting Started](../../doc/getting_started.md#test) guide for testing example with ST app.  | 
0 commit comments