i.MX8M Plus CAN FD setsockopt() fails in C code

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

i.MX8M Plus CAN FD setsockopt() fails in C code

148件の閲覧回数
abhayaugustin1
Contributor II

What is the correct function commands to open a socket , enable canfd frames and bind to the interface .The socket should receive bit rate switchcing frames.
ip link set can0 up type can bitrate 500000 dbitrate 2000000 fd on //This is the command i use to enable can interface 

Currently i am using :

socket(PF_CAN, SOCK_RAW , CAN_RAW);
setsockopt(sock, SOL_CAN_RAW, CAN_RAW_FD_FRAMES, &enable_canfd, sizeof(enable_canfd));
setsockopt is giving me error code 22 (EINVAL).


what are the correct arguements for :
socket();
setsockopt();

タグ(3)
0 件の賞賛
返信
1 返信

115件の閲覧回数
danielchen
NXP TechSupport
NXP TechSupport

Hi 

 

CAN-FD is not supported on the consumer version of i.MX 8M Plus,   it is only available  on the Industrial version.

Unfortunately on the 8MP EVK,   the consumer version  is installed,  so i.MX 8M Plus EVK not support CAN-FD feature.

 

Regards

Daniel

0 件の賞賛
返信