The problem of using LPUART in s32k144 with FreeRTOS
08-27-2022
09:09 PM
975 Views
zhangxujun1981
Contributor I
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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 !
2 Replies
08-29-2022
03:01 AM
953 Views

NXP TechSupport
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Reply
08-31-2022
10:33 PM
930 Views
zhangxujun1981
Contributor I
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
