# FreeRTOS ARM Cortex-M7 SAM V71 Port Stack Overflow Issue

**URL:** <https://forums.freertos.org/t/freertos-arm-cortex-m7-sam-v71-port-stack-overflow-issue/8395>\
**Category:** Kernel\
**Created:** [December 10, 2019, 8:42pm UTC](https://forums.freertos.org/t/freertos-arm-cortex-m7-sam-v71-port-stack-overflow-issue/8395 "2019-12-10T20:42:27Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![iwilmoth](https://avatars.discourse-cdn.com/v4/letter/i/ee59a6/32.png) [@iwilmoth](https://forums.freertos.org/u/iwilmoth)\
**Post date:** [December 10, 2019, 8:42pm UTC](https://forums.freertos.org/t/freertos-arm-cortex-m7-sam-v71-port-stack-overflow-issue/8395/1 "2019-12-10T20:42:27Z")

</div>

Hi,

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,  
Ian

---

<div class="post-metadata">

**Author:** ![rtel](https://d3iykfbgfh8zhg.cloudfront.net/user_avatar/forums.freertos.org/rtel/32/31_2.png) [@rtel](https://forums.freertos.org/u/rtel)\
**Post date:** [December 10, 2019, 8:59pm UTC](https://forums.freertos.org/t/freertos-arm-cortex-m7-sam-v71-port-stack-overflow-issue/8395/2 "2019-12-10T20:59:11Z")

</div>

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.
