AnsweredAssumed Answered

[MPC5748G][S32DS] SDK LinFlexD and FreeRTOS

Question asked by Travis Kuo on Oct 11, 2018
Latest reply on Oct 12, 2018 by Rares Vasile

Hi,

 

We tried to use LinFlexD to output UART charecters with API LINFLEXD_UART_DRV_SendDataBlocking(). It looks we can only use it after OS starts. If we send right after driver inits, it will hang. See the example below. The code will hang at LINFLEXD_UART_DRV_SendDataBlocking() and never get return.

Would you please comment if there's any limitation or rule in this case?

 

 

int main(void)
{

CLOCK_SYS_Init(g_clockManConfigsArr, CLOCK_MANAGER_CONFIG_CNT,
g_clockManCallbacksArr, CLOCK_MANAGER_CALLBACK_CNT);
CLOCK_SYS_UpdateConfiguration(0U, CLOCK_MANAGER_POLICY_AGREEMENT);

PINS_DRV_Init(NUM_OF_CONFIGURED_PINS, g_pin_mux_InitConfigArr);
LINFLEXD_UART_DRV_Init(INST_LINFLEXD_UART1, &linflexd_uart1_State, &linflexd_uart1_InitConfig0);

LINFLEXD_UART_DRV_SendDataBlocking(INST_LINFLEXD_UART1, "test", 5, 1000U);

 

xTaskCreate(xxxx);

vTaskStartScheduler();

Outcomes