Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CanFD :Operation not supported #2

Open
L-SY opened this issue Aug 28, 2024 · 3 comments
Open

CanFD :Operation not supported #2

L-SY opened this issue Aug 28, 2024 · 3 comments

Comments

@L-SY
Copy link

L-SY commented Aug 28, 2024

I designed a PCB board based on your open-source design and flashed the candleLightFD.bin firmware onto it.
When I plug it into my Ubuntu system, it recognizes the CAN device:

ip -details link show can0
12: can0: <NOARP,ECHO> mtu 16 qdisc noop state DOWN mode DEFAULT group default qlen 10
    link/can  promiscuity 0 minmtu 0 maxmtu 0 
    can state STOPPED restart-ms 0 
	  bitrate 1000000 sample-point 0.750 
	  tq 25 prop-seg 14 phase-seg1 15 phase-seg2 10 sjw 1
	  gs_usb: tseg1 1..256 tseg2 1..128 sjw 1..128 brp 1..512 brp-inc 1
	  clock 40000000 numtxqueues 1 numrxqueues 1 gso_max_size 65536 gso_max_segs 65535

but I am unable to use CAN FD. I encounter the error RTNETLINK answers:

Operation not supported when running sudo ip link set can0 up type can bitrate 1000000 dbitrate 1000000 fd on.
RTNETLINK answers: Operation not supported

How to solve this err
Looking forward to hearing from you!

@FuzzyPt233
Copy link

Hi there! Can you please share the 'candleLightFD.bin' to me to test on my board? I do not have the develop environment on Linux so that haven't test my board.

@SmithChart
Copy link
Member

Hi @FuzzyPt233 ,

Hi there! Can you please share the 'candleLightFD.bin' to me to test on my board? I do not have the develop environment on Linux so that haven't test my board.

we are currently shipping a fork of the upstream. We are working on mainlining - but that is still ongoing.
I've added links and the binary to our product page here:
https://linux-automation.com/en/products/candlelight-fd.html

@SmithChart
Copy link
Member

Hi @L-SY,

I designed a PCB board based on your open-source design and flashed the candleLightFD.bin firmware onto it. When I plug it into my Ubuntu system, it recognizes the CAN device:

ip -details link show can0
12: can0: <NOARP,ECHO> mtu 16 qdisc noop state DOWN mode DEFAULT group default qlen 10
    link/can  promiscuity 0 minmtu 0 maxmtu 0 
    can state STOPPED restart-ms 0 
	  bitrate 1000000 sample-point 0.750 
	  tq 25 prop-seg 14 phase-seg1 15 phase-seg2 10 sjw 1
	  gs_usb: tseg1 1..256 tseg2 1..128 sjw 1..128 brp 1..512 brp-inc 1
	  clock 40000000 numtxqueues 1 numrxqueues 1 gso_max_size 65536 gso_max_segs 65535

but I am unable to use CAN FD. I encounter the error RTNETLINK answers:

Operation not supported when running sudo ip link set can0 up type can bitrate 1000000 dbitrate 1000000 fd on.
RTNETLINK answers: Operation not supported

How to solve this err Looking forward to hearing from you!

I am sorry. I must have missed your issue. Which firmware binary did you use? Did you compile from source? Based on which commit? What Linux version are you on?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants