CAN-BUS communication

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

CAN-BUS communication

479 Views
935512732
Contributor I
  • The file include the simplified SCH of CAN-BUS module and the official routine of CAN-BUS module.And my problem is that Tx can not transmit any @signal,also the Rx can not receive any signal.Can you help me?Thank you!
Tags (1)
0 Kudos
1 Reply

350 Views
PetrS
NXP TechSupport
NXP TechSupport

The code looks normal. What looks wrong is the connection you have.  There are swapped RX and TX pins between MCU and PHY. But maybe it is just mistake on the SCH.

If the connection is correct, means PB0/PC10 to TXD and PB1/PC3 to RXD then you can try this:

- set weak pull ups on RX pins

  SIU.PCR[35].R = 0x0103;

  SIU.PCR[17].R = 0x0103;

- look at ECR and ESR registers to know if there is any error

BR.

Petr

0 Kudos