with S32DS on MPC5748G , uart pal can not work with freertos ?

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

with S32DS on MPC5748G , uart pal can not work with freertos ?

770 Views
mikening
Contributor I

             with  S32DS on MPC5748G , uart pal can not work with freertos 

Hi , I am using S32DS for develop on MPC5748G and I want to integrate uart_pal_mpc5748g to freertos_mpc5748g , but failed .freertos_mpc5748g function is OK, but uart function is not of work . the step what I did as below:

1, add uart_pal and pinsetting  components into freertos_mpc5748g sample code 

pastedImage_2.png

pastedImage_3.png

2,config uart_pal and pinsetting component as below:

pastedImage_4.png

pastedImage_5.png

3,generated code as below;

pastedImage_6.png

4,add uart function into freertos_mpc5748g sample code as below:

pastedImage_7.png

pastedImage_8.png

5,compile and debug :

  it can run into vUartTask ,but uart function is not OK----can not send data and receive data 

so why uart pal can not work ?

there are some config to do ?

Labels (1)
0 Kudos
1 Reply

598 Views
B46399
NXP Employee
NXP Employee

Hi,

My first hunch would be the pin setup; on MPC5748G the linflexd tx pins are not driven to the UART idle state by the controller, so in order to get accurate UART messages in the console you need to manually enable Pull-up function for the LINFLEXD tx pin. This can be done from PinSettings component, "Functional Properties" tab.

If this doesn't solve the issue, please attach the project so I can take a closer look. From what I see here it should be fine.

Regards,

Vlad 

0 Kudos