# CAN Interfaces and C++ sample code

**URL:** <https://forums.developer.nvidia.com/t/can-interfaces-and-c-sample-code/70885>\
**Category:** DRIVE AGX Xavier General\
**Created:** [February 26, 2019, 8:18pm UTC](https://forums.developer.nvidia.com/t/can-interfaces-and-c-sample-code/70885 "2019-02-26T20:18:15Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jerryc\_sf](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@jerryc\_sf](https://forums.developer.nvidia.com/u/jerryc_sf)\
**Post date:** [February 26, 2019, 8:18pm UTC](https://forums.developer.nvidia.com/t/can-interfaces-and-c-sample-code/70885/1 "2019-02-26T20:18:15Z")

</div>

Hi,

Could you please let me know which chips CAN Interfaces (1&2, 3&4, and 5&6) physically connect to? are all of them physically connected to AURIX? or each set is physically connected to Xavier A, B and AURIX respectively?

I guess Xavier A or B can access all CAN interfaces. let me know if not. Could you please provide Linux-based sample C/C++ code that can send/receive CAN commands via the interfaces? It would be better if code is not based on Nvidia DriveWorks library. We have a design requirement of sending/receiving CAN commands by directly talking to CAN Drivers. Please provide steps to set up the CAN interfaces before running the code (in case if these steps cannot be done within C++ code).

Thanks  
Jerry

---

<div class="post-metadata">

**Author:** ![SteveNV](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/stevenv/32/14043_2.png) [@SteveNV](https://forums.developer.nvidia.com/u/SteveNV)\
**Post date:** [February 27, 2019, 12:37am UTC](https://forums.developer.nvidia.com/t/can-interfaces-and-c-sample-code/70885/2 "2019-02-27T00:37:54Z")

</div>

Dear jerryc\_sf,

Could you please refer to DDP\_EB\_AURIX\_Software\_UserGuide.pdf in DRIVE-V5.0.13-E3550-Aurix.zip file?  
DRIVE-V5.0.13-E3550-Aurix.zip is in DRIVE/Linux/5.0.13.2/SW/DriveSDK/drive-t186ref-foundation/utils/scripts.

Regarding CAN physical connection, please refer to The figure 3.1, “NVIDIA® DDP Xavier™ Hardware Overview” in the doc.

Regarding CAN sample code, I will send EB contact point via PM, please help to check it with EB team. Thanks.

---

<div class="post-metadata">

**Author:** ![TomNVIDIA](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/tomnvidia/32/14181_2.png) [@TomNVIDIA](https://forums.developer.nvidia.com/u/TomNVIDIA)\
**Post date:** [October 12, 2021, 8:05pm UTC](https://forums.developer.nvidia.com/t/can-interfaces-and-c-sample-code/70885/3 "2021-10-12T20:05:46Z")

</div>

Closed on October 12, 2021, 8:05pm UTC


