-
Notifications
You must be signed in to change notification settings - Fork 121
Add CAN FD #387
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
base: main
Are you sure you want to change the base?
Add CAN FD #387
Conversation
|
@jlpoltrack mLRS/mLRS/rx-matek-mr900-td30-g474ce/Core/Src/main.cpp Lines 131 to 135 in 56a28c6
Did you ever see also the issues I had reported? I.e., did you ever try to reproduce for the conditions I had seen them? |
I guess you mean on the AP side with that lost message issue. One note is that this branch also does Classic CAN until CAN FD is detected, so can do with the same firmware:
From what I gathered reading around, the different sample points caused by using 170 MHz cause all kinds of issues between the nodes at CAN FD speeds. I couldn't even get 2 Mbps to work without a lot of Bit1 and TEC errors (you can see all of the debugging added to try and understand what was going on). After about a day of fiddling around with sampling points and TDCO I switched to the 160 MHz sysclock with AP's 80 MHz CAN FD timings and things instantly worked. |
|
so is the argument that with 170MHz/5Mbps the sampling points cannot be set to work with those used for 160MHz/5Mbps ?? It makes me wonder if things would also work more stable for 1Mbps if one would use 160MHz, i.e., if the issues I see are due to that. I just would like to understand the situation better, empirical evidence is great but not satisfying ... |

Somewhat academic.
Had to use 160 MHz Sysclock / 80 MHz fdcan peripheral clock to play nicely with ArduPilot.
Tested on Matek H743 WLITE + mR900 TD.
Debug:

Setup:
