wangchdo opened a new pull request, #17121:
URL: https://github.com/apache/nuttx/pull/17121
Change stack overflow checking dependencies from
1. STACKCHECK_MARGIN depend on STACKCHECK_SOFTWARE
2. STACKCHECK_SOFTWARE depnd on
STACK_COLORATION && DEBUG_ASSERTIONS &&
SCHED_SUSPENDSCHEDULER
To:
1. STACKCHECK_MARGIN depends on STACK_COLORATION && DEBUG_ASSERTIONS
2. STACKCHECK_SOFTWARE depends on STACK_COLORATION && DEBUG_ASSERTIONS
So users can:
1. choose STACKCHECK_SOFTWARE or STACKCHECK_MARGIN independently
2. enabling stackoverflow check wiill not depend on SCHED_SUSPENDSCHEDULER.
## Summary
Decoupling margin stack overflow check with software stack overflow check
and suspendscheduler.
## Impact
Decoupling margin stack overflow check with software stack overflow check
and suspendscheduler.
No impact to other nuttx parts
## Testing
**enabling margin stackcheck in a2g-tc397-5v-tft**
<img width="774" height="591" alt="image"
src="https://github.com/user-attachments/assets/9f485330-94eb-436c-84eb-ad243f30951c"
/>
**add stackcheck test code**
<img width="744" height="484" alt="image"
src="https://github.com/user-attachments/assets/a493d9c3-2913-4129-8c9b-abb58c59e55d"
/>
**ostest passed**
<img width="397" height="522" alt="image"
src="https://github.com/user-attachments/assets/db799398-a72a-4787-b970-5b06400ebd86"
/>
**stackcheck test passed**
<img width="1159" height="118" alt="image"
src="https://github.com/user-attachments/assets/c6f49c74-65de-46d5-a633-70341fc498be"
/>
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]