Forum Discussion
TJesp1
New Contributor
7 years agoCAN data length sometimes wrong
Hi We use the Altera CAN IP and HPS CAN API on the Cyclone V SoC. Even though we always send the same data length (DLC) on a given CAN ID, it is sometimes sent with an incorrect DLC. Just for ref...
EBERLAZARE_I_Intel
Regular Contributor
7 years agoHi Thomas,
Is the CAN bus enabled in device tree?
Regards.
TJesp1
New Contributor
7 years agoHi el.ign
I’m not sure what you mean with “Device Tree”?
We are running uC/OS-III as OS on ARM0 with two threads (one for RX and one TX) utilizing the Altera HPS CAN Controller API.
Thomas Jespersen
Senior Firmware Engineer, B.Sc.E.E.
Secure Power Kolding
Building & IT Business
Schneider Electric
D +45 72 19 02 40
F +45 72 19 03 50
E [email protected]<mailto:[email protected]>
Silcon Allé 1
6000 Kolding
Denmark
[http://www.schneider-electric.com/b2b/en/campaign/life-is-on/life-is-on.jsp#xtor=CS4-112-[Mixed]-[lifeison]-[]-[]]<http://www.schneider-electric.com/b2b/en/campaign/life-is-on/life-is-on.jsp#xtor=CS4-112-[Mixed]-[lifeison]-[]-[]>
*Please consider the environment before printing this e-mail
[Blog]<https://www.facebook.com/SchneiderElectric> [Blog] <https://www.linkedin.com/company/schneider-electric> [Blog] <http://blog.schneider-electric.com/> [Blog] <https://www.twitter.com/SchneiderElec> [Blog] <https://www.youtube.com/schneidercorporate> [Blog] <https://plus.google.com/+schneiderelectric> [Blog] <https://instagram.com/schneiderelectric>
- EBERLAZARE_I_Intel7 years ago
Regular Contributor
Hi Thomas,
The CAN is enabled in the device tree using Linux;
I highly suggest you refer here;
https://rocketboards.org/foswiki/Documentation/LinuxCANBusOnTheCyclone5
Regards.
- EBERLAZARE_I_Intel7 years ago
Regular Contributor
Hi,
I would recommend that you configure the CAN bus in the Linux Kernel to make sure your design is working there.
Regards.
- TJesp17 years ago
New Contributor
Hi We don’t use Linux… Thomas Jespersen Senior Firmware Engineer, B.Sc.E.E. Secure Power Kolding Building & IT Business Schneider Electric D +45 72 19 02 40 F +45 72 19 03 50 E [email protected]<mailto:[email protected]> Silcon Allé 1 6000 Kolding Denmark [http://www.schneider-electric.com/b2b/en/campaign/life-is-on/life-is-on.jsp#xtor=CS4-112-[Mixed]-[lifeison]-[]-[]]<http://www.schneider-electric.com/b2b/en/campaign/life-is-on/life-is-on.jsp#xtor=CS4-112-[Mixed]-[lifeison]-[]-[]> *Please consider the environment before printing this e-mail [Blog]<https://www.facebook.com/SchneiderElectric> [Blog] <https://www.linkedin.com/company/schneider-electric> [Blog] <http://blog.schneider-electric.com/> [Blog] <https://www.twitter.com/SchneiderElec> [Blog] <https://www.youtube.com/schneidercorporate> [Blog] <https://plus.google.com/+schneiderelectric> [Blog] <https://instagram.com/schneiderelectric>