AnsweredAssumed Answered

IMX6 CAN configuration using canutils and libsocketcan

Question asked by Flavio Cordova on Jan 15, 2014
Latest reply on Feb 4, 2014 by TomE

I have several questions about how handle the CAN, first I find a few documents

winter2012_EcoCariMX53_v1.pdf
https://community.freescale.com/docs/DOC-1437
https://www.kernel.org/doc/Documentation/networking/can.txt
https://gitorious.org/linux-can/can-utils/source/31936b5a173dfe1d0ba0e71859e37cbc42d5bad8:
https://community.freescale.com/servlet/JiveServlet/download/367675-268661/FlexCAN_training_material.pdf

But, dont show how shall be compiled the canutils on the app, for example, if in the app is used the ncurses, I need to add several lines in the makefile to point the locations of the include files and the lib, by the CAN dont say anything

in the https://community.freescale.com/docs/DOC-9619 , page 46 an 47 try to explain how calculate the Bitrate and the escalation, but is not clear enough, also how I can transfer to a code.

The CAN is automatic open when we send the dataframe through "write" function or is necessary open it with other instructions, the documents show the instruction

ifconfig can0 up

When is transmitted through line command.

Could you help me to clarify this points

Regards

Outcomes