(Using S32DS3.5, S32K344, RTD4 latest and FreeRTOS latest)
After getting ethernet working under FreeRTOS using static and dynamic memory allocation, I have also managed to get socket handling working, mainly through the chargen example of the tcpip stack examples. So far no problem.
The problem is that when integrating this code with my current codebase, ISR handling is no longer working as expected.
Another community issue indicates so increase the stack, which I have tried without any change in behavouir (Solved: RTD 4.0.0p01 FlexCAN with FreeRTOS asserts in OsIfSuspendAllInterrupts() - NXP Community)
The problem that occurs is that the PIT ISR enters a critical region, which in turn ends up in the vPortEnterCritical function provided in the FreeRTOS code.
A clear comment in this function states that it is not to be called from an ISR context, which is exactly what is happening here. Thus, the configAssert statement hangs the application.
I have tried to find an example of using FreeRTOS while also having ISRs from external sources working but can only locate LED examples.
My current configuration uses PIT and CAN and both of these behave the same as both use critical regions.
Any suggestions greatly appreciated.
Regards,
/Ola