sakthivel kulandaivel

S32K144 FlexCAN0 PTC3/PTC2  Not Working

Discussion created by sakthivel kulandaivel on Jul 5, 2018
Latest reply on Oct 9, 2018 by Razvan-nicolae Tilimpea

Hello All,

I'm working in S32K144 MCU for the FlexCAN Communication. I have used the Example Source NON-SDK for FlexCAN, EVB Board flashed the example and tap the CAN_TX Line(PTE5) to the scope and Running the programming can see the CAN Frame Data.

My problems are,

I'm using PTC3 -CAN_TX(ALT3) and PTC2-CAN_RX(ALT3) followed the same Example code only different is PORTC changed.

Please anyone faces the same problem with using PORT C for FlexCAN0 

Port C Configuration,

Case 1:

PCC->PCCn[PCC_PORTC_INDEX ]|=PCC_PCCn_CGC_MASK; /* Enable clock for PORTC */
PORTC->PCR[3]|=PORT_PCR_MUX(3); /* Port C3: MUX = ALT3,(CAN0)C_CAN TX */
PORTC->PCR[2]|=PORT_PCR_MUX(3); /* Port C2: MUX = ALT3,(CAN0)C_CAN RX */

Case 2:

PCC->PCCn[PCC_PORTC_INDEX ]|=PCC_PCCn_CGC_MASK; /* Enable clock for PORTC */
PORTC->PCR[3] &= ~(PORT_PCR_MUX_MASK);
PORTC->PCR[3]|=PORT_PCR_MUX(3); /* Port C3: MUX = ALT3,(CAN0)C_CAN TX */
PORTC->PCR[2] &= ~(PORT_PCR_MUX_MASK);
PORTC->PCR[2]|=PORT_PCR_MUX(3); /* Port C2: MUX = ALT3,(CAN0)C_CAN RX */

Both Case 1 and Case2 i'm not see any Data signls with the scope.

 

Please let me know if any other configuration required.

 

Thanks,

Sakthivel K#

Outcomes