AnsweredAssumed Answered

LINFLEXD_UART_DRV_SendData() not working

Question asked by Barkly Lin on Aug 9, 2018
Latest reply on Aug 17, 2018 by Barkly Lin

Hi all

Creating a S32 flexuart example project, LINFLEXD_UART_DRV_XXX() functions are working well.

S32 DS flexuart example project

When creating a new S32 project, then porting flexuart function.

New a S32 project

 

Then modify main() for UART communication based on LINFlex I/F.

main()

...

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

 

PINS_DRV_Init(NUM_OF_CONFIGURED_PINS, g_pin_mux_InitConfigArr);

 

//Simply add couple lines to configure LINFlexD_10 for UART communicaiton

PINS_DRV_Init(NUM_OF_CONFIGURED_PINS, g_pin_mux_InitConfigArr);

LINFLEXD_UART_DRV_Init(INST_LINFLEXD_UART10, &linflexd_uart10_State, &linflexd_uart10_InitConfig0);

while(1)
LINFLEXD_UART_DRV_SendData(INST_LINFLEXD_UART10, (uint8_t*)msg, strlen(msg)); //No response from console at all

The example code as attachment "test_flexcan_uart.zip"

Anyone knows what problem about S32 DS?

Thanks in advance.

Attachments

Outcomes