logo elektroda
logo elektroda
X
logo elektroda

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

gmp 4212 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
    Anonymous
    Level 1  
  • #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