I assume by “illegal action” you mean calling a FreeRTOS API with non-zero block time. If yes, there is no assert to catch this as of now. Critical sections should be few and should be very short and deterministic and therefore, grepping for taskENTER_CRITICAL and reviewing the code can be a viable way to catch such violations.
aggarg
(Gaurav Aggarwal)
7
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| After taskENTER_CRITICAL(), I call xsemaphoretake. Why doesn't it crash? | 3 | 811 | September 26, 2021 | |
| xSemaphoreGive in critial section | 2 | 172 | December 23, 2014 | |
| xSemaphoreTake in ISR? | 11 | 448 | February 23, 2007 | |
| Using xSemaphoreTake and xSemaphoreTakeFromISR | 10 | 1952 | April 10, 2021 | |
| mutex between task and ISR | 4 | 431 | June 30, 2008 |