CAN communication on STR912FA does not work

Guest #1949874
Rate this post
• ▲ useful
▼ not useful
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

Note: the original post is older than 6 months. Please don't ask any new questions in this thread, but start a new one.

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.