Before logging an issue, please update to the latest release of Visual Micro from the Downloads Page.

When Logging a Support Issue in the Forum, please ensure you have also:-

  • Enabled vMicro > Compiler > Show Build Properties
  • Re-Compile your program with these settings enabled
 
Save the new Output to a Text File and....
  • Click the Reply button and attach as .txt file OR
  • Click here to Email us with the file attached, and a link to your post
Support requests without the output above may be impossible to answer, so please help us to help you
 
Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic ESP32 custom partitions (Read 23 times)
Acuario
Full Member
***
Offline


Posts: 248
Location: Spain
Joined: Aug 28th, 2015
ESP32 custom partitions
Mar 2nd, 2025 at 7:27pm
Print Post  
Hi, 
can you explain the relationship between the VM partition settings and a custom partitions table.

I have a custom table partitions.csv in my project. 

Do the settings in VM for flash size and partition scheme apply when this is in my project?

I had them set at 16Mb and default 4Mb as I didn´t think they were relevant if I had a custom partition but when I built my code I ran out of space. The resulting build file size was per the VM partition scheme.

I changed the VM partition scheme to minimal spiffs and now my project builds, but I did not change to my partition.csv file.

The maximum size from the build output is now reported as 1966080 bytes (the 1.9Mb as per the VM setting) but my custom file sets it as 1.66Mb.

I checked in the build directory and my partitions file is there.
It seems VM does not take into account the custom file.

Here is the contents of my partitions.csv file:

# Name,   Type, SubType, Offset,  Size, Flags
nvs,      data, nvs,     0x9000,  0x5000,
otadata,  data, ota,     0xe000,  0x2000,
app0,     app,  ota_0,   0x10000, 0x1A0000,
app1,     app,  ota_1,   0x1B0000,0x1A0000,
spiffs,   data, spiffs,  0x350000,0x4B000,

I also ran the partition dump code for the ESP32 and that reports my partitions as per the custom partitions.csv file.

So it seems the code is built correctly and the partitions coincide between the partitions table and the actual built code but VM is using the values from the options to calculate the file size and not from the partitions table.

I confirmed this by changing the partition scheme back to a 4Mb scheme and the result is the following:
Program AHRS size: 1249425 bytes (used 95% of a 1310720 byte maximum) (378.80 secs)
Changing to the Minimal SPIFFS scheme the result is as follows:
Program AHRS size: 1249425 bytes (used 64% of a 1966080 byte maximum) (244.73 secs)
« Last Edit: Mar 2nd, 2025 at 8:08pm by Acuario »  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint