Skip to main content
sG.12
Associate II
January 22, 2019
Question

I'm Working on CAN protocol. Its worked good in loopback mode . but while executing in normal mode it will show dominant bit error.

  • January 22, 2019
  • 6 replies
  • 1473 views

using STM32f103c8t6 and transceiver MCP2551. This transceiver working well in with other controllers.

This topic has been closed for replies.

6 replies

Tesla DeLorean
Guru
January 22, 2019

Still think you need to review transceiver, wiring, speed and bus traffic.​

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
sG.12
sG.12Author
Associate II
January 22, 2019

already checked everthing..speed 1Mhz, terminate with 120 ohm

Tesla DeLorean
Guru
January 22, 2019

So is the controller wrong about the error? Have you confirmed the signal integrity with a scope or analyzer?

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
sG.12
sG.12Author
Associate II
February 11, 2019

only checked using ST LINK debugger.

Jack Peacock_2
Associate II
January 22, 2019

If loopback works then the first thing to look at is how the other node is configured, especially the bit timing. Check the timing on your other node and make sure the STM32 matches it.

Is your timing crystal based or an RC oscillator? RC based timing has considerable drift, especially running at a 1MHz bus rate.

Jack Peacock

sG.12
sG.12Author
Associate II
February 11, 2019

Crystal based. 8Mhz