/* This is not the interrupt safe version of the enter critical function so
assert() if it is being called from an interrupt context. Only API
functions that end in "FromISR" can be used in an interrupt. Only assert if
the critical nesting count is 1 to protect against recursive calls if the
assert function also uses a critical section. */
if ( ullCriticalNesting == 1ULL ) {
configASSERT( ullPortInterruptNesting == 0 );
}
You should follow up the call stack to find out where the asserting xTaskGenericNotify is called to answer your question or to find out what’s going wrong.
Ok. With the debugging of the xTaskNotify I could the function with the wrong call. In an ISR I called xTaskNotify, after I changed I to xTaskNotifyFromISR the application will run.
Great that you found it (and reported back) and got more familiar with the FreRTOS debug/development features.
You see - those configASSERTs are incredibly useful and got improved with every FreeRTOS version up to now.
Using them might also help with your own application development, too.