Other Parts Discussed in Thread: EK-LM3S8962
I am a student at Western Washington University and I am going crazy trying to get CAN functioning on my stellaris.
For my senior project I wish to communicate between two or three boards using CAN protocol. One board will receive user input and place that information on the CAN bus. While one or two boards will interpret that information and react accordingly. This is an over simplification of my project, but the foundation which I am running into issues with.
Background:
I have been using the Stellaris LM4F120XL LaunchPad and now I have tried both the A540 and now the Mcp2551 trancivers with my board. I was excited to see someone in Germany had posted some information on getting the the simple_tx.c working from the can examples. But after following his guidlines, I am still having issues:/
The guide I followed which has the wiring diagram for the Mcp2551 tranciver. this is my current set up:
http://www.fischl.de/arm/can_bus_interface_for_stellaris_launchpad/
Resulting output to terminal:
The 5's are part of my debuging 5 = CAN_STATUS_TXOK, which means...
//! A message was transmitted successfully since the last read of this
//! status.
Resulting output to scope on CAN_H and CAN_L:
both signals are in respect to ground, sorry for the zoom, I can not figure out how to get my roommates cheep O-scope to trigger on the messages, but they are there...
UPDATE: I got the trigger working!
This is one of the messages... looks like CAN to me(does not mean much;)
my code:
my vector file:
my question:
Does anyone know why this is not working? FINAL UPDATE: I checked my receiver and it appears to be receiving the data I am transferring! I still dont understand the error I am getting or why the sending value is wrong... any ideas? Or does anyone know what this CAN_STATUS_TXOK is / where I can find the API documentation for this error?
Thank you,
Jordan Mosher