Problem linking together and running CAN bus
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2014-01-15 3:21 AM
Posted on January 15, 2014 at 12:21The original post was too long to process during our migration. Please click on the attachment to read the original post.
This discussion is locked. Please start a new topic to ask your question.
2 REPLIES 2
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2014-01-15 6:33 AM
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,rygelxviOptions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2014-01-15 6:46 AM
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