🤖Have you ever tried Chat.M5Stack.com before asking??😎
    M5Stack Community
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    How to use the full size of the partition with PlatformIO?

    Scheduled Pinned Locked Moved SOFTWARE
    2 Posts 1 Posters 4.5k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • G Offline
      GoT
      last edited by

      Hi everyone,
      I bought a M5Core2 with Flash 16MB and PSRAM 8MB, but with PlatformIO, I'm not able to use the whole space.
      I created a partition csv file (see below), but it seems not really working well

      # Name,   Type, SubType, Offset,  Size, Flags
      nvs,      data, nvs,     0x9000,  0x5000,
      otadata,  data, ota,     0xe000,  0x2000,
      app,      app,  ota_0,   0x10000, 0xff0000,
      

      I always receive this kind of errors:

      .platformio/packages/toolchain-xtensa-esp32/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld: .pio/build/m5stack-core2/firmware.elf section `.flash.rodata' will not fit in region `drom0_0_seg'
      .platformio/packages/toolchain-xtensa-esp32/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld: region `drom0_0_seg' overflowed by 247536 bytes
      

      I really don't know what to do with that.
      Without my little change, platformio returns:

      RAM:   [          ]   1.8% (used 119212 bytes from 6553600 bytes)
      Flash: [==        ]  20.9% (used 3485493 bytes from 16711680 bytes)
      

      So I should have available spaces ^^'

      Any idea?

      1 Reply Last reply Reply Quote 0
      • G Offline
        GoT
        last edited by

        Everything is reproducible here: https://github.com/PierreRambaud/pokegotchi/tree/try/partitions

        1 Reply Last reply Reply Quote 0

        Hello! It looks like you're interested in this conversation, but you don't have an account yet.

        Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

        With your input, this post could be even better 💗

        Register Login
        • First post
          Last post