Partition table and memory

1. Experimental purpose

Use the ESP32S3 core module of the microROS control board to learn the function of ESP32 custom partition table.

 

2. Hardware connection

As shown in the figure below, the microROS control board integrates the ESP32-S3-WROOM-1U-N4R2 core module. It not only has internal space, but also has an additional 4MB FLASH program space and 2MB PSRAM memory space. You only need to connect the type-C data cable Connect the computer to the microROS control board as a firmware burning function.

image-20240112174901940

 

3. Core code analysis

The virtual machine path corresponding to the program source code is as follows

Create a new partitions.csv file in the project root directory and add the following content.

Then open the IDF configuration tool and specify the partition table as partitions.csv.

image-20240115105903174

image-20240115105930619

 

4. Compile, download and flash firmware

Use a Type-C data cable to connect the virtual machine/computer and the microROS control board. If the system pops up, choose to connect to the virtual machine.

Activate the ESP-IDF development environment. Note that every time you open a new terminal, you need to activate the ESP-IDF development environment before compiling the firmware.

Enter the project directory

Compile project

You can see that the partition table printed during compilation is consistent with the partitions.csv file.

image-20240115110522843

Flash and open the serial port simulator

If you need to exit the serial port simulator, press Ctrl+].

 

5. Experimental results

The serial port simulator prints the "hello yahboom" greeting.

image-20240115112425843

Then slide the mouse wheel upward to view the printed system information. You can see the partition table content displayed in the boot: Partition Table column, which is consistent with the content of partitions.csv in the project root directory.

image-20240115112531589