CAN communication on STR912FA does not work

Guest #1949874
Hello,

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.

Thanks
Attached files:

Reply

A question of your own? This thread is over 15 years old. Ask it in a thread of its own – more people read along there, and it gets answered more often and sooner.

Start a new thread

A fix, an addition or feedback on this thread? Then reply here.

Formatting
  • [c]C-Code[/c]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]
  • [[Title]] – link to an article
  • Link to another post: right-click its post ID (#8078628), copy the address, paste it into the text

More about formatting

Post long source code as an attachment, not in the text.

Already registered? Log in

Not shown to anyone. We send you a link; your post appears once you confirm it there.

By submitting you create a free account and accept the terms of use.