Hello
I write a sketch that should run without changes on different boards.
I need to know in code how much RAM is availabale on the board.
For all Arduino boards this is simple:
But when compiling the sketch for Teensy I get:
error: 'RAMSTART' was not declared in this scope
error: 'RAMEND' was not declared in this scope
Is there any equivalent ?
P.D.
I don't want to know how much RAM is free.
I want to know the total RAM.
I write a sketch that should run without changes on different boards.
I need to know in code how much RAM is availabale on the board.
For all Arduino boards this is simple:
Code:
uint32_t RamSize = RAMEND - RAMSTART + 1;
But when compiling the sketch for Teensy I get:
error: 'RAMSTART' was not declared in this scope
error: 'RAMEND' was not declared in this scope
Is there any equivalent ?
P.D.
I don't want to know how much RAM is free.
I want to know the total RAM.