Skip to content

size: RP2040 RAM omits .data and counts .ota/.partition #2041

Closed

Description

@zackees

RP2040 RAM figure still follows the old size rules

#2021 (#2012) fixed flash accounting on RP2040 but deliberately left RAM matching the old size tool. For Arduino-Pico that gets two things wrong:

  • .data is not counted as RAM, even though it occupies RAM, because its section flags are "read, exec".
  • .ota and .partition are counted as RAM because they are writable, even though they live in flash at 0x100xxxxx.

Related: #2027, where heap and stack reservations (writable NOBITS sections) count as RAM on every platform. The two should be decided together: count RAM by address region, or by PlatformIO's section set (.data, .bss, .noinit), rather than by section flags.

Part of #2035.

Activity

  1. zackees commented on Nov 17, 2026

    @zackees
    MemberAuthor

    Claimed by the fbuild-74 coordinator. PR #2052 (#2027) changed RAM to count PlatformIO's .data/.bss/.noinit set, which should cover this. A sub-agent is checking that on a real RP2040 build and adding RP2040 tests before closing (meta #2035).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions