program stuck when using S32G UART API with freertos

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

program stuck when using S32G UART API with freertos

1,025 Views
Terry_Huang
Contributor II

I'm encountering an issue while using the S32G UART API in FreeRTOS. Here are my environment settings:

I am using RTD version: 4.0.2, with the OStype set to FreeRTOS in the baseNXP module.
Both the FreeRTOS and UART modules are using their default settings.
When I call Linflexd_Uart_Ip_AsyncSend within a task, it triggers the uart_irq_handler. Upon the transmission of the last piece of data,
the Linflexd_Uart_Ip_CompleteSendUsingInterrupts, Linflexd_Uart_Ip_SetInterruptMode, SchM_Enter_Uart_UART_EXCLUSIVE_AREA_02, and OsIf_SuspendAllInterrupts are invoked in the Uart_Irq_handler.
Finally, OsIf_SuspendAllInterrupts calls FreeRTOS's taskENTER_CRITICAL, which triggers configASSERT.

Could you please help me resolve this issue?
Should I use taskENTER_CRITICAL_FROM_ISR instead of taskENTER_CRITICAL in the Uart_irq_handler?image.pngimage.pngimage.pngimage.png

Tags (3)
0 Kudos
Reply
1 Reply

1,010 Views
Terry_Huang
Contributor II

upload the call stack we observed 

image.png

 
Tags (3)
0 Kudos
Reply