Jump to content
Sign in to follow this  
dinomycle

using energia for CAN programming

Recommended Posts

Hello All,

 

Is there any sample program for using the CAN with Stellaris/Tiva-C with energia IDE ? 

 

I could see D:\energia-0101E0017\hardware\lm4f\cores\lm4f\driverlib  

can.c and can.h  files.

 

How to include this .h files and have a program which transmit some data

 

 

 

Thanks for your support

Dino

Share this post


Link to post
Share on other sites

Those provide the TivaWare Peripheral Driver Library functions for CAN.  Look at the Tiva's PDL user guide for details on that API.

 

You should also be able to access the ROM_ versions of those which live on the chip's burned ROM.

No Energia examples around that I've seen.

Share this post


Link to post
Share on other sites

Attached are a couple of example Sketches that one of the community members put together with my guidance a while back. I have not tested these but they seemed to work for that person. I think these are loopback examples. Should be easy to change them to talk to a CAN tranceiver like the http://www.ti.com/product/sn65hvd251.

 

Robert

CANExamples.zip

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×