The problem of using LPUART in s32k144 with FreeRTOS

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

The problem of using LPUART in s32k144 with FreeRTOS

486 Views
zhangxujun1981
Contributor I

If don't use freeRTOS , The function LPUART_DRV_SendDataBlocking(INST_LPUART1, (uint8_t *)str, strlen(str), UART_TIMEOUT) works well. But if import freeRTOS to project , this function only tx the first one byte, and never back.
even I set the priority of LPUART1_RxTx_IRQn bigger then configMAX_SYSCALL_INTERRUPT_PRIORITY ,  but it still send only one byte.

The init code :
/* Initialize LPUART instance */
LPUART_DRV_Init(INST_LPUART1, &lpuart1_State, &lpuart1_InitConfig0);

INT_SYS_SetPriority(LPUART1_RxTx_IRQn,configMAX_SYSCALL_INTERRUPT_PRIORITY + 2 );
INT_SYS_EnableIRQ(LPUART1_RxTx_IRQn);

Thanks !

Tags (2)
0 Kudos
2 Replies

464 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hello @zhangxujun1981,

It was discussed in this thread:

https://community.nxp.com/t5/S32-SDK/Send-Data-using-Blocking-method-within-FreeRTOS-Fail/td-p/14259...

 

Please have a look.

 

Thanks,

BR, Daniel

441 Views
zhangxujun1981
Contributor I

Thanks!

Tags (1)
0 Kudos