Example can

From wiki.emacinc.com
Revision as of 12:04, 25 September 2020 by Btisler (talk | contribs) (Page creation)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

This is a guide to the can C example project included in the EMAC OE SDK.

ADD Description of project and CAN

The can project builds one executable: can.

Opening, Building and Uploading the Project Files

For information on opening the project from within Eclipse, please see Importing the EMAC OE SDK Projects with Eclipse. Then, follow Using the EMAC OE SDK Projects with Eclipse for information on how to build, upload and execute the example.

Alternatively, the Makefile can be used with the make command from the commandline to build and upload the example. For information on this method, please see Using EMAC OE SDK Example Projects.

EMAC SDK 5.X

For information on opening the project from within QtCreator, please see QtCreator: Adding Source Files. Then, follow Getting Started With Qt Creator for information on how to build, upload and execute the example.

Alternatively, the CMakefile.txt can be used with the cmake command from the commandline to build and upload the example. For information on this method, please see Getting Started with the EMAC OE SDK.

Usage and Behavior

Hardware Requirements

Using can

The can program is executed from the console. Requires either the argument "send" or "receive"

./can [send/recieve]

The program

Usage Example

root@som9g20:/tmp# ./can send
...

Summary

The can C example project demonstrates.