What can be a reason to stuck (or get exception) in call to vPortEnterCritical ?
Can one task that enters critical section dead lock with another task that is trying to enter critical section? Can theoretically task that enters critical section intentionally let other task to run? What if task in critical section will try to block on semaphore for instance?
A few background. I’m on STM32F2xx running lwip. I’ve used vPortEnterCritical to implement (port) sys_arch_protect required by lwip. Lwip suggests use mutex or semaphore for this purpose although I though my approach was also good until got stuck.