S32K144 FlexCAN0 PTC3/PTC2 Not Working

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

S32K144 FlexCAN0 PTC3/PTC2 Not Working

2,553 Views
sakthivelkuland
Contributor III

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#

Labels (1)
0 Kudos
Reply
7 Replies

1,987 Views
klau
Contributor II

Hi,

On the evaluation board, you need to switch one jumper to use 12 Volt supply.

Thanks,

Kevin

0 Kudos
Reply

1,987 Views
gumpforrest
Contributor I

HI~

I have the same problem.

1. I made CAN0 OK on Demo board, and the CAN0 connects to PTE4 and PTE5

2. I moved codes to a new board,whose CAN0 connects to PTC2 and PTC3

3. I just changed CAN Interface SDK as follow:

ss.png

After that, CAN0 can never work well, and PTC2 and PTC3 have no waves on scope

Is that anyone soveled this ?

0 Kudos
Reply

1,987 Views
1348207385
Contributor I

HELLO  can you help me?  S32K144 Demo CAN example   can not  run ???  your QQ ??

0 Kudos
Reply

1,987 Views
razva_tilimpea
NXP Employee
NXP Employee

Hi all,

I suppose that both of you are using S32K144 devkit.

On that board PTC3 is not connected to pin headers because it is by default connected to touch electrodes.

pastedImage_1.png

pastedImage_2.png

For more details about schematic please go to :S32K144 Evaluation Board|NXP  and download S32K144 Quick Start Package.

Best regards,

Razvan

0 Kudos
Reply

1,987 Views
klau
Contributor II

Hi Razvan,

 I just ran the example projects "S32K144_Project_CanFd" and "S32K144_Project_FlexCan" on the evaluation board,

https://www.nxp.com/docs/en/quick-reference-guide/S32K144EVB-QSG.pdf 

and found nothing from "PTE5" (CAN0_TX) mapped to header pin J6-18.

I am going to try these codes again.

Do you mind to help out please?

Thanks,

Kevin

0 Kudos
Reply

1,987 Views
razva_tilimpea
NXP Employee
NXP Employee

Hi Kevin,

You don't find PTE5 pin on the pin header or you can't get CAN signal on that pin?

Also, from where did you get these examples? Did you tried CAN examples provided with SDK?

Best regards,

Razvan

0 Kudos
Reply

1,987 Views
klau
Contributor II

Hi Razvan,

I found PTE5 pin on the pin header, and toggled this pin after I configured

it as a GPIO pin. Verified that is the right pin. I would like to find out

if there is a bit stream at this pin on the S32K144.

I can NOT find (see) CAN signal on this pin after I ran the example

programs.

Here are the schematic and layout for the board that I am using,

https://www.nxp.com/downloads/en/schematics/S32K144EVB-SCH-29248-RB1.pdf

https://www.nxp.com/docs/en/quick-reference-guide/S32K144EVB-QSG.pdf

I ran the examples from S32K1xx_cookbook, these are attached.

Also I imported examples from S32 Design Studio, and found no bit stream on

CAN0_Tx ( PTE5).

Please help,

Thanks,

Kevin

On Wed, Mar 20, 2019 at 2:58 AM razva_tilimpea <admin@community.nxp.com>

0 Kudos
Reply