FreeRTOS Support Archive
The FreeRTOS support forum is used to obtain active support directly from Real
Time Engineers Ltd. In return for using our top quality software and services for
free, we request you play fair and do your bit to help others too! Sign up
to receive notifications of new support topics then help where you can.
This is a read only archive of threads posted to the FreeRTOS support forum.
The archive is updated every week, so will not always contain the very latest posts.
Use these archive pages to search previous posts. Use the Live FreeRTOS Forum
link to reply to a post, or start a new support thread.
[FreeRTOS Home] [Live FreeRTOS Forum] [FAQ] [Archive Top] [March 2017 Threads]
Hello Guys,
What should i write in vApplicationStackOverflowHook ?
could you give me an example?
What do you want the overflow hook to do? If you just want to halt the system then disable interrupts and sit in an infinite loop so nothing else can run. If you want to know which task overflowed its stack then either print out or otherwise store the task name and/or handle that are passed into the overflow hook function. What you should not try and do is recover from the stack overflow though - if you need to do that then use an MPU port instead as that will alert you before the overflow occurs rather than afterwards.
Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.