I’m working on optimizing memory usage in my application and was wondering how to determine the minimum allocation needed for the idle task. I’m running on an ARM M4 processor, so Idle should not be needed for interrupts, correct? In that case can I simply check the idle task’s high water mark while my application is running and reduce any excess (leaving a small buffer), or are there still potential use cases where more stack could be consumed?
Make sure when you measure the high water mark, you have exercised any vApplicationIdleTaskHooks that you might use, as well as any tickless idle processing that might be defined.