Available RAM to user on boron? getting more memory?

Hi all and thx in advance for any advice. Again it seems that I need more bits, I’d like to sto some largeish buffers in RAM and am trying to figure a way to claim more of it. I assumed that most of the 256k of ram was available so I’d planned on using about 2/3 of it to be safe. I started leaking memory and whatnot… so I wrote this program to test how much I had:

void setup() {
void loop() {
    uint32_t freemem = System.freeMemory();
    Serial.print("free memory: ");

the return is:

10:38:41.014 -> free memory: 71424

so 71kb of free ram available to the user with nothing really happening. That seems like a lot to be used by just the idle system. Is there some way I can adjust the memory footprint of the OS? Is there something hogging this memory that I can turn off?


This is not quite right. All Particle devices run a DeviceOS (FreeRTOS, Nordic SoftDevice, Particle code) which requires flash and RAM. The 71KB reported is effectively the RAM remaining to the user. There is currently no mechanism for reducing the DeviceOS RAM footprint.

Several of us here have added FRAM chips via I2C for storing larger data structures. Not as fast as onboard RAM, and you can’t use it to extend the amount of system RAM available to your program, but it’s quick nonvolatile storage with no write wear.

1 Like

Thanks, I did end up adding an fram chip onto the board but haven’t gotten around to using it yet.

Suggest you use the library MB85RC256V-FRAM-RK to save yourself time - this also supports other FRAM sizes than just 256K.

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.