logo elektroda
logo elektroda
X
logo elektroda

[Solved] [ESP32-C3] How to modify the partitions.csv file to increase the available memory?

gmp 1560 3
ADVERTISEMENT
Treść została przetłumaczona polish » english Zobacz oryginalną wersję tematu
  • #1 20964784
    gmp
    Level 19  
    According to the documentation, the ESP32-C3-DEvkit1 has 4MB FLASH. Unfortunately for the user some 1310720 bytes are left.
    This is the error:
    Advanced Memory Usage is available via "PlatformIO Home > Project Inspect"
    RAM: [==== Error: The program size (1426822 bytes) is greater than maximum allowed (1310720 bytes)
    *** [checkprogsize] Explicit exit, status 1

    Apparently something can be done with the file partitions.csv, but I don't really understand what , maybe someone knows/has an example for this module?
  • ADVERTISEMENT
  • #2 20965019
    JacekCz
    Level 42  
    I also DON'T UNDERSTAND.
    It is a message from the execution (which I doubt) or from the compilation / linking in the IDE, in which case one would have to testify a little on the subject.
  • ADVERTISEMENT
  • #3 20966031
    khoam
    Level 42  
    gmp wrote:
    Apparently you can do something with the partitions.csv file, but I don't really understand what

    First of all it is best to look at the documentation:
    https://docs.espressif.com/projects/esp-idf/en/v5.2/esp32c3/api-guides/partition-tables.html
    https://espressif-docs.readthedocs-hosted.com...sp32/en/latest/tutorials/partition_table.html

    Since you are using PlatformIO, it is also worth looking here:
    https://docs.platformio.org/en/latest/platforms/espressif32.html#partition-tables

    Added after 3 [minutes]:

    There are even special "wizards" for easier creation of a partitions.csv e.g.:
    https://atctwo.net/projects/esp32-partition-editor/

    For the entire ESP32 family, flash partition schemes are created in the same way.
  • #4 20972630
    gmp
    Level 19  
    As I don't really want to study how to generate this file for my one home project.
    I found probably the simplest page to generate this file: [url=]https://esp32.jgarrettcorbin.com/[/url]


    You should select Huge App and Save.
    I generated something like this for ESP32-C3 4MB , saved as C3_partitions.csv in the root folder of the application:

    # Name, Type, SubType, Offset, Size, Flags
    nvs, data, nvs, 0x9000, 0x5000,
    otadata, data, ota, 0xe000, 0x2000,
    app0, app, ota_0, 0x10000, 0x300000,
    spiffs, data, spiffs, 0x310000, 0xe0000,
    coredump, data, coredump, 0x3f0000, 0x10000,

    And in platform.ini:
    [env:esp32-c3-devkitm-1]
    platform = espressif32
    board = esp32-c3-devkitm-1
    framework = arduino
    board_build.partitions = C3_partitions.csv
ADVERTISEMENT