program stuck when using S32G UART API with freertos

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

program stuck when using S32G UART API with freertos

1,020件の閲覧回数
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

タグ(3)
0 件の賞賛
返信
1 返信

1,005件の閲覧回数
Terry_Huang
Contributor II

upload the call stack we observed 

image.png

 
タグ(3)
0 件の賞賛
返信