EmbDev.net

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


von student (Guest)


Attached files:

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

Please log in before posting. Registration is free and takes only a minute.
Existing account
Do you have a Google/GoogleMail account? No registration required!
Log in with Google account
No account? Register here.