官术网_书友最值得收藏!

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:

  1. Open the Terminal and navigate to your project folder.
  2. Run menuconfig by typing the following command:
$ make menuconfig
  1. You will get a form as shown in Figure 2-9. Select TFT Display DEMO Configuration from this form:
Figure 2-9: Configuring the TFT Display demo
  1. You will get a form as shown in Figure 2-10. You can select Select predefined display configuration:
Figure 2-10: Selecting the predefined display configuration
  1. You will see a list of TFT modules as shown in Figure 2-11.
  2. Since we are using ESP-WROVER-KIT v4, we will select the ESP-WROVER-KIT Display option.
  1. You can select this option by pressing the Tab key on your keyboard:
Figure 2-11: Selecting ESP-WROVER-KIT Display
  1. Next, we configure the flash size. Navigate back to the main menu as shown in figure 2-9.
  2. Select the Serial flasher config menu.
  3. Then, select the Flash size option.
  1. After this is selected, you will see a list of flash sizes, as shown in Figure 2-12:
Figure 2-12: Selecting 4MB for flash size
  1. Select 4 MB for flash size.
  2. Save this configuration.
  3. 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:

Figure 2-13: Editing the sdkconfig file

Now, your program is ready to compile and run in the next section.

主站蜘蛛池模板: 许昌县| 青冈县| 星子县| 哈密市| 北海市| 泗水县| 新巴尔虎右旗| 志丹县| 天柱县| 永川市| 闽侯县| 土默特左旗| 石家庄市| 鲁甸县| 荆门市| 洪湖市| 苏尼特右旗| 黄陵县| 安吉县| 贵港市| 宁蒗| 襄樊市| 吴旗县| 丹东市| 韶山市| 陆良县| 永和县| 开封市| 夏河县| 紫云| 克拉玛依市| 双牌县| 台北县| 葫芦岛市| 贡山| 彰武县| 穆棱市| 丹阳市| 古田县| 平阴县| 瑞金市|