-
-
Notifications
You must be signed in to change notification settings - Fork 8.2k
port/esp32: Add CAN(TWAI) driver. #12331
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: master
Are you sure you want to change the base?
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #12331 +/- ##
=======================================
Coverage 98.54% 98.54%
=======================================
Files 169 169
Lines 21877 21877
=======================================
Hits 21558 21558
Misses 319 319 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
As mentioned on the linked PR, this work is much appreciated and we're keen to have esp32 CAN driver support. Implementing a common @IhorNehrutsa I hope you're keen to keep this PR open and it can be adapted it to the new API once that's available. |
esp-idf 5.02
|
@straga Can you share your code changes? This PR may not be completed so quickly. |
|
This is an automated heads-up that we've just merged a Pull Request See #13763 A search suggests this PR might apply the STATIC macro to some C code. If it Although this is an automated message, feel free to @-reply to me directly if |
be0679d
to
b3394d5
Compare
Hi, I tried to compile this PR to test it, but I can't seem to enable the idf twai component. While building, I get errors indicating that it doesn't recognize the #include "driver/twai.h" as seen in this error:
I've already tried to enable it via idf.py menuconfig, but couldn't find the option there. Would be nice if anyone could help me. |
b19f701
to
79ed82e
Compare
e7cca3d
to
8c2132e
Compare
8c2132e
to
3b0d58f
Compare
I was able to use your branch @IhorNehrutsa , but I had to make some changes to the example code found here:
|
6f81e42
to
bd3d673
Compare
0792fba
to
3380c14
Compare
This looks pretty extensive, but I am unsure what the blocker on ESP32 CAN support is right now? It looks to wait on a rewrite of the STM32 implementation? Is there anything that anyone could help out with? I would love to start a project with CAN in micropython later, but it looks like efforts on it are blocked or halted? |
Signed-off-by: IhorNehrutsa <Ihor.Nehrutsa@gmail.com>
CONFIG_XTAL_FREQ_40=y CONFIG_XTAL_FREQ=40 Signed-off-by: Ihor Nehrutsa <Ihor.Nehrutsa@gmail.com>
Co-Authored-By: Sveinung Kval Bakken <sveinung.bakken@gmail.com> Signed-off-by: Ihor Nehrutsa <Ihor.Nehrutsa@gmail.com>
3380c14
to
557d5ee
Compare
I am updated as USER_C_MODULES Add some updates for the build as a module and for LoopBack, with the pin connected -> together. |
This pull request is based on ESP32: CAN(TWAI) driver #7381
Consistent with the docs\machine_CAN: Add CAN docs. #12330
Will consistent with the New machine.CAN driver #12337