cancel
Showing results for 
Search instead for 
Did you mean: 

Problem linking together and running CAN bus

jlsilicon
Associate II
Posted on January 15, 2014 at 12:21

The original post was too long to process during our migration. Please click on the attachment to read the original post.
2 REPLIES 2
troy1818
Senior
Posted on January 15, 2014 at 15:33

Hi,

I cannot say anything about the CAN interface, since I never used it.

But your interrupt routine looks a little strange ?

First off you need to make sure that the activity in the irq function does not take too much time. Also, I think you better clear the interrupt after it has been served?

Regards,

rygelxvi

jpeacock2399
Associate II
Posted on January 15, 2014 at 15:46

You can't loop back on one bus transceiver.  CAN requires a minimum of two nodes to work...one has to transmit the recessive idle bits while the other is listening before a transmission.  You can do an internal loopback inside the STM32 by setting both loopback and silent mode bits.  This disconnects the external bus transceiver.

Make sure you have a terminator at both ends as well.  You'll get a lot of passive errors if the line isn't terminated.

  Jack Peacock