[teensy41] CAN BUS support

Discussion and questions about boards that can run MicroPython but don't have a dedicated forum.
Target audience: Everyone interested in running MicroPython on other hardware.
Post Reply
m0vse
Posts: 2
Joined: Wed Mar 09, 2022 10:36 pm

[teensy41] CAN BUS support

Post by m0vse » Wed Mar 09, 2022 10:44 pm

Hi.

I am interested in getting the FlexCAN peripheral supported in MicroPython. Has anybody done any work in this direction, or could point me to any resources to help me? I am an OK c/c++ programmer but have very limited knowledge of MicroPython :)

Cheers

Phil

User avatar
Roberthh
Posts: 3667
Joined: Sat May 09, 2015 4:13 pm
Location: Rhineland, Europe

Re: [teensy41] CAN BUS support

Post by Roberthh » Thu Mar 10, 2022 7:22 am

Hi Phil,
CAN support is on our to-do-list. So it will show up someday. But any contribution in this project is good. For designing the API, look at what is impemented already for other ports, like that for PyBoard (https://docs.micropython.org/en/latest/ ... hlight=can) or in the PR which is open it https://github.com/micropython/micropython/pull/8185.
These sources will as well give examples for embedding into the MicroPython framework. Examples for the driver itself can be found at the NXP drivers, e.g. https://github.com/NXPmicro/mcux-sdk/tr ... rs/flexcan. You get examples from NXP if you download a SDK package for the mimxrt1062 from the NXP web site.https://www.nxp.com/security/login?serv ... 2Flogin%2F

m0vse
Posts: 2
Joined: Wed Mar 09, 2022 10:36 pm

Re: [teensy41] CAN BUS support

Post by m0vse » Fri Mar 11, 2022 7:35 am

Thanks Robert.

I will likely have more questions as I work through this.

Phil

Post Reply