mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
Merge branch 'bugfix/minimal_stacksize_watchpoint_aware' into 'master'
[freertos]: Changed minimal stack size to regard watchpoint usage See merge request espressif/esp-idf!16269
This commit is contained in:
commit
2e1c7d876c
@ -166,10 +166,19 @@
|
|||||||
#define configSTACK_OVERHEAD_APPTRACE 0
|
#define configSTACK_OVERHEAD_APPTRACE 0
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/* Stack watchpoint decreases minimum usable stack size by up to 60 bytes.
|
||||||
|
See FreeRTOS FREERTOS_WATCHPOINT_END_OF_STACK option in Kconfig. */
|
||||||
|
#if CONFIG_FREERTOS_WATCHPOINT_END_OF_STACK
|
||||||
|
#define configSTACK_OVERHEAD_WATCHPOINT 60
|
||||||
|
#else
|
||||||
|
#define configSTACK_OVERHEAD_WATCHPOINT 0
|
||||||
|
#endif
|
||||||
|
|
||||||
#define configSTACK_OVERHEAD_TOTAL ( \
|
#define configSTACK_OVERHEAD_TOTAL ( \
|
||||||
configSTACK_OVERHEAD_CHECKER + \
|
configSTACK_OVERHEAD_CHECKER + \
|
||||||
configSTACK_OVERHEAD_OPTIMIZATION + \
|
configSTACK_OVERHEAD_OPTIMIZATION + \
|
||||||
configSTACK_OVERHEAD_APPTRACE \
|
configSTACK_OVERHEAD_APPTRACE + \
|
||||||
|
configSTACK_OVERHEAD_WATCHPOINT \
|
||||||
)
|
)
|
||||||
|
|
||||||
#define configMINIMAL_STACK_SIZE (768 + configSTACK_OVERHEAD_TOTAL)
|
#define configMINIMAL_STACK_SIZE (768 + configSTACK_OVERHEAD_TOTAL)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user