Skip to content

Platforms need common symbols for indicating RAM size. #4756

Open
@WestfW

Description

@WestfW

AVR arduinos define RAMSTART and RAMEND, Due defines IRAM0_SIZE and IRAM0_ADDR, and Zero defines HMCRAMC0_SIZE and HMCRAM0_ADDR. (All via the Atmel include files...)
For the sake of sketches that want to run on all platforms, and want to modify their memory consumption based on how much memory is available (ie in buffers; similar to the way that HarwareSerial sizes the ISR buffers), it would be nice to have common symbols that would allow a programmer to determine memory size. (probably RAMSTART and RAMEND, since they're already in use. I had to dig to find the SAM symbols.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Architecture: SAMApplies only to the SAM microcontrollers (Due)Architecture: SAMDApplies only to the SAMD microcontrollers (Zero, etc.)Component: CoreRelated to the code for the standard Arduino APIfeature requestA request to make an enhancement (not a bug fix)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions