LLCE LIN TX Error

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

LLCE LIN TX Error

1,796 Views
naveenkumar_muthusamy
Contributor III

HI

I am using the S32G274A , with the example LLCE_LIN in s32 design studio, whenever the transmit is happening , the code gets stuck in the do while loop for LLCE_LIN_GET_STATUS, where the return type i am getting is LLCE_LIN_HEADER_ERROR,

 

    Lin_43_LLCE_SendFrame(LIN_CH2, &tosend_frame);
	do {
         LinStatus = Lin_43_LLCE_GetStatus(LIN_CH2, &linSduPtr);
    }
    while (LinStatus != LIN_TX_OK);
    ASSERT(LinStatus == LIN_TX_OK);

 

can you give me suggestions how to get rid of this error,

 

Thanks in Advance.......

#S32G274A

LLCE examples for s32G274A 

 @Daniel-Aguirre 

Labels (1)
0 Kudos
7 Replies

1,785 Views
naveenkumar_muthusamy
Contributor III

Hi @Daniel-Aguirre ,

 

I am running the Lin_llce_ds_s32g274a_m7:Debug_ram example,

i have connected the LIN output to the oscilloscope to check the data transfer, but the data transfer is not happening , there are no changes done in the code

the voltage levels of the LIN is at 12V, but the data transfer is not happening

0 Kudos

1,774 Views
Daniel-Aguirre
NXP TechSupport
NXP TechSupport

Hi,

What platform are you using? To what LIN channels are you connecting?

I cannot replicate the problem you are seeing with an RDB2 platform. Even if the channels are not connected as a loopback, the program stops on the while loop with the RX status check, not the one your program is stopping.

Please, let us know for us to continue improving our answer.

0 Kudos

1,768 Views
naveenkumar_muthusamy
Contributor III

Hi @Daniel-Aguirre,

We are using Lin channel 2 as master, LIN channel 3 as slave, baudrate used is 9600, lin2 and lin3 are looped with external connections.

the hardware used is miriac MPX_s32g274a, Eventhough i have not connected the loopback,

i should be able to see the LIN_TX_OK response instead of the LIN_HEADER_FRAME_ERROR

i have checked the hardware of the schematics as the channels are connected to the LIN Transceiver and hardware connections are proper as per my understanding

Please check and revert me

0 Kudos

1,748 Views
Daniel-Aguirre
NXP TechSupport
NXP TechSupport

Hi,

Still, I cannot replicate the error you are seeing.

Can you confirm that you have a LIN PHY implemented in your board for each LIN channel being used?

Seems to be more of a board problem than a driver problem at this moment.

Please, let us know.

0 Kudos

1,739 Views
naveenkumar_muthusamy
Contributor III

Hi @Daniel-Aguirre 

 The  LIN phy is implemented in the hardware side, Kindly check the image attached.

 

0 Kudos

1,730 Views
Daniel-Aguirre
NXP TechSupport
NXP TechSupport

Hi,

Thanks for the confirmation on the PHY.

Still, I cannot seem to reproduce this error.

Have you confirmed that the clock configuration is done as expected? Can you probe LINx_TX and LINx_RX and see if there is information getting out of the system? What happens if you manually moved to instruction to outside the do-while loop? Can it finish running?

0 Kudos

1,787 Views
Daniel-Aguirre
NXP TechSupport
NXP TechSupport

Hi,

What example are you running? Have you modified anything in the example? What are your external connections?

At this point in time, the example is running with no errors with RDB2 hardware.

Please, let us know for us to continue improving our answer.

0 Kudos