Closed simon88 closed 1 year ago
Hello simon88,
Ahh yes, the SAMD21E17A comes with half as much ram as the samd21G18A that most samd arduinos come with. You will have to modify the configTOTAL_HEAP_SIZE inside FreeRTOSConfig.h to be way smaller. This defines the giant chunk of memory that is allocated at compile time for the rtos to use as it heap for making tasks stacks and freertos objects.
You can try something 1/2 or 1/3 of what it is now, and that should get you going. I always recommend adjusting the heap size depending on your projects needs so you can optimize the heap space vs global ram space for libraries and global objects and variables.
Good luck!
Hi @BriscoeTech ,
Nice thanks for your answer, I've updated configTOTAL_HEAP_SIZE
by 7 * 1024
and now it's works perfectly great
HI,
I'm trying to compile Basic_RTOS_Example but i got an error when I compiled.
It's seem there is an error with the
RAM
region.