Need pointers in converting a program from mbed to teensy 3

Status
Not open for further replies.

keithg

Well-known member
I have built 2 teensy 3 projects and am really enjoying working with this board. Now I am looking at converting an mbed project to teensy 3.0. Is this possible? Are there any pointers that may be able to help me along the path?

The project is this: Just4Trionic

EDIT: I guess the most important question is does the chip on the Teensy 3.0 have a CAN bus port or not. The Freescale docs show that some MK20DX128 chips have CAn and others do not. It does not appear that the chip on the teensy has this capability, so I may be out of luck.

Regards,

Keith
 
Last edited:
I believe it does have CAN bus functionality as Paul has talked about writing a library for it not too long ago.
 
Teensy 3.0, I think, is retired in favor of Teensy 3.1 which is much more for about the same cost, same pinout.
 
I am trying to build a CAN library, but the going is tough, as I cannot find a CAN library for this chip .... anyone know of one?
 
dpharris, I could not understand your question you mentioned that you are "Developing a CAN library for the controller but unable to find a CAN library for this Chip"
If there was already a library there would be no need of you to develop one in the first case. So can you please explain a bit of what exactly are you expecting.
 
I am trying to build [USE?] a CAN library, but the going is tough, as I cannot find a CAN library for this chip .... anyone know of one?
Build or use?

A good starting point is one of the existing Arduino CAN bus libraries. Seems fairly simple to change the portion of the code that is CAN controller hardware specific.
The model railroaders use a lot of CAN bus with microprocessors.
Google search points to lots on this topic.
 
Last edited:
Yes, I am 'one of those model railroaders', see OpenLCB.org. Sorry, I had expressed myself poorly. I cannot find a manufacturer's library for this chip to adapt to our purposes, But did find some for other chips with Flexcan controllers. The initialization and operation of these CAN controllers is not at all trivial :-(. If someone has a pointer to some existing code, that would be helpful.

David.
 
Yes, thanks. If there is nothing else, that might suffice. There is often subtleties that are not obvious, and CAN is rather unforgiving, so a code sample is very helpful.

David
 
I briefly looked in Freescale's App Notes. Didn't see one but more looking, or an inquiry of Freescale's field app engr makes sense.
Another place to look might be IAR or Keil's app notes.
 
Status
Not open for further replies.
Back
Top