- Internet of Things Projects with ESP32
- Agus Kurniawan
- 298字
- 2021-06-24 16:02:56
Configuring the ESP-WROVER-KIT v4 board
Before we compile and flash our program to the ESP32 board, we should configure our project. In this section, the ESP32 board model is ESP-WROVER-KIT v4. We configure the LCD model and flash size using menuconfig. To do so, follow these steps:
- Open the Terminal and navigate to your project folder.
- Run menuconfig by typing the following command:
$ make menuconfig
- You will get a form as shown in Figure 2-9. Select TFT Display DEMO Configuration from this form:
![](https://epubservercos.yuewen.com/BAE446/19470380401498606/epubprivate/OEBPS/Images/b3c4a574-6740-4e44-a405-692c6af9d565.png?sign=1739357263-PvDPsjdWdKKsI5E5WkqtQVcjWt8Tt8hc-0-d5cc8acc72dcfce81953c5984b517ce9)
Figure 2-9: Configuring the TFT Display demo
- You will get a form as shown in Figure 2-10. You can select Select predefined display configuration:
![](https://epubservercos.yuewen.com/BAE446/19470380401498606/epubprivate/OEBPS/Images/cfa9f3d8-ec7b-4391-b9be-e0daf10f4ce3.png?sign=1739357263-GBdZMgYP1W3jKyyS6thpLjkH3YH8HRUV-0-f66d5b7b66feffee29bef09d1287e698)
Figure 2-10: Selecting the predefined display configuration
- You will see a list of TFT modules as shown in Figure 2-11.
- Since we are using ESP-WROVER-KIT v4, we will select the ESP-WROVER-KIT Display option.
- You can select this option by pressing the Tab key on your keyboard:
![](https://epubservercos.yuewen.com/BAE446/19470380401498606/epubprivate/OEBPS/Images/56396d17-c076-4f15-a069-22e16d6e9ae9.png?sign=1739357263-ktP4ong6AIrS9b71SBgXTYkU3ZwA9gFl-0-aadbdea1f3614119db42f227ea2ea638)
Figure 2-11: Selecting ESP-WROVER-KIT Display
- Next, we configure the flash size. Navigate back to the main menu as shown in figure 2-9.
- Select the Serial flasher config menu.
- Then, select the Flash size option.
- After this is selected, you will see a list of flash sizes, as shown in Figure 2-12:
![](https://epubservercos.yuewen.com/BAE446/19470380401498606/epubprivate/OEBPS/Images/4302f993-e94d-4fcc-8919-14fd29be7649.png?sign=1739357263-bvo4T10RSXN25XSscYp8hmwmvcMTJjRf-0-d835ac24127d1d8b20654323c14f6e99)
Figure 2-12: Selecting 4MB for flash size
- Select 4 MB for flash size.
- Save this configuration.
- Select Exit to quit menuconfig.
After we run menuconfig, we will get a config file, sdkconfig, as shown in Figure 2-13. Open this file and ensure that this config has a value of CONFIG_SPIFFS_BASE_ADDR= 0x180000. If you have a value 180000 on that config, you should change it to 0x180000:
![](https://epubservercos.yuewen.com/BAE446/19470380401498606/epubprivate/OEBPS/Images/bf8ed298-8424-4033-985e-65aa0f4630a6.png?sign=1739357263-NNav9jjkDMmrhTbUVNJy7IYYRBvh55IJ-0-aa081fbc208a0a6d254dfb67dc70fb28)
Figure 2-13: Editing the sdkconfig file
Now, your program is ready to compile and run in the next section.