S32K314 CAN inoperative

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

S32K314 CAN inoperative

319 Views
Oido
Contributor I

CAAN.jpg

Hello, I have configured the circuit with S32K314 and TJA1462BT models. There was a design problem for STB pins, but I connected it directly to the ground.
However, the CAN is not working at the moment.
I clocked it with EVB, used it at 24MHZ, and only made the CAN0 pin position different. On the 344 EVB board, it works perfectly without any code or clock bitrate modifications. But it doesn't work on my board at the moment.
I'm posting my situation. Please let me know if you find a problem.

0 Kudos
Reply
5 Replies

305 Views
PetrS
NXP TechSupport
NXP TechSupport

Hi,

STB connected to GND would set Normal mode, assuming transceiver is properly powered.
You can try to measure TXD, RXD and CAN lines if you see any signal if message is send from MCU. Check module ECR, ESR1 registers as well. Be sure to have bus properly terminated.
Do you really have TJA1462BT? TJA1462AT requires VIO on pin 5.

BR, Petr

0 Kudos
Reply

284 Views
Oido
Contributor I

20240725_192128.jpg

Of course. I think it's model B.
I think the STB pin went into normal mode by shorting it with ground with 0 ohm resistance. However, EVB boards that only have CAN0 pins with the same clock code work fine, but my board doesn't.
If you send a TX from the MCU or a TX from a PC, the voltage of CAN H, L pins will split from 2.5V to approximately 1.6V and 3.1V, but that's it.
Data is transmitted or not transmitted.

Please understand that the substrate is messy to change the values of the parts to solve the problem.

I think I can check the registers tomorrow. What registers do I need to check? Should I check the freeze mode or MDIS in MCR?

0 Kudos
Reply

277 Views
PetrS
NXP TechSupport
NXP TechSupport

Hi,

measure TXD, RXD and CAN lines witch scope/analyzer and module MCR, ECR, ESR1 registers.

BR, Petr

0 Kudos
Reply

250 Views
Oido
Contributor I

CANTX.jpg

Hello, I checked the registers
On the left, FlexCAN_Ip_Send (INST_FLEXCAN_0, TX_MB_IDX, &rx_info, MSG_ID, (uint8 *)&dummyData); on the right, the function is still applied and the MCU sends the TX. On the right, the register status is where the FlexCAN_Ip_Send function is annotated and just waiting without TX.
I think an error occurs when I send a TX, but it's hard for me to see what kind of problem it is, is there a way to find out??
The communication speed is 500K, which was adjusted in the program and function, and CAN0 PTA2728 is in use.

--------------------------------------------------------------------------------

EVBCANTX.jpg

This photo shows that all codes, clocks, and registers remain the same, and only the STB pins of the PTC20 have been changed from PTA27,28 to PTA6,7 for CAN IC activation and connected to the EVB board with nothing changed. Similarly, the left side has the CAN SEND function in place immediately after TX and the right side has the SEND function removed.

Can I find the cause?

0 Kudos
Reply

239 Views
PetrS
NXP TechSupport
NXP TechSupport

Hi,

error is due to missing ACK from other node. So, if other node is connected, check bitrate setting on both to be same. On MCU, if system clock is derived from FIRC, select rather FXOSC clock for FlexCAN PE clock.

BR, Petr

0 Kudos
Reply