Does this help?
I use the following in my app.
extern unsigned long _heap_start;
extern unsigned long _heap_end;
extern char *__brkval;
uint32_t freeRAMTeensy() {
return (char *)&_heap_end - __brkval;
}
uint32_t freeStackTeensy() {...
Make your setup something like:-
void setup() {
Serial.begin(9600);
/* check for CrashReport stored from previous run */
if (CrashReport) {
/* print info (hope Serial Monitor windows is open) */
Serial.print(CrashReport);
}
}
See...
Hi!
Is it possible to find out how much free RAM (RAM1 and RAM2) is left on Teensy 4.1
My board sometimes unexpectedly reboot, I want to understand why. Maybe I have a memory leak.
My memory usage now
FLASH: code:699008, data:153072...