FreeRTOS ARM Cortex-M7 SAM V71 Port Stack Overflow Issue


I got the FreeRTOS v10 ARM Cortex-M7 SAM V71 demo running on a SAM V71 Xplained Ultra evaluation kit (using Atmel Studio 7), but I had an issue with vApplicationStackOverflowHook being called when I enabled all the demo tests. The task name passed in was “Notified” so I found the stack size for that task, and it was set to configMINIMAL_STACK_SIZE. Changing this minimal stack size from 130 words to 131 words fixed the issue; I ran the demo for a few days and the LED on the board kept cycling every 3 seconds, as the demo documentation said it should.

Has anyone else had this problem with this demo? I can’t find any other threads about the issue.


Thanks for letting us know. From your post it looks like it was very marginal so could be use to a different compiler version using slim ore stack.