Forum: µC & Digital Electronics CAN communication on STR912FA does not work

von student (Guest)

Attached files:

Rate this post
not useful

I try to build a CAN communication on my Keil Board „MCBSTR9 Version4“ 
with the microcontroller „STR912FA“. I did not find a CAN Example for 
this Board, so I use the „BLINKY.C: Led Flasher for MCB-STR9 Board“ 
project and try to build the CAN communication on this project.

At first, I tried a self-test with the settings LoopBack and SilentMode. 
That worked fine with the code below. But if I want to send or receive a 
CAN message to or from another CAN node, it does not work. I get an 
continuous error (ErrorCounter reach its maximum value).

With my osci, I can see a received CAN message on the CAN transceiver 
and on the Pins 5.0 (CAN TX) and 5.1(CAN RX). When I am sending a 
message, I see nothing on the CAN bus.



Entering an e-mail address is optional. If you want to receive reply notifications by e-mail, please log in.

Rules — please read before posting

  • Post long source code as attachment, not in the text
  • Posting advertisements is forbidden.

Formatting options

  • [c]C code[/c]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]

Bild automatisch verkleinern, falls nötig
Note: the original post is older than 6 months. Please don't ask any new questions in this thread, but start a new one.