ttlappalainen
Member
I have been developing NMEA 2000 library and would like to add support for latest FlexCAN library. Which fork is used by Teensy project?
The included version of the library in 1.37 seems to be the "9af9498 on 10 Jan" github version from collin80. Both FlexCAN.cpp have 749 lines and look the same. I haven't used a diff tool.Which fork is used by Teensy project?
I wondered about this, too, when doing my last CAN experiments with my small test setup. But it worked without errors for simple communication between two microcontrollers.Specially I wonder that newer version of FlexCAN uses interrupt handling for receiving as transmitting messages, but there is no locking mechanism for reading and writing buffers buffers outside of interrupt.
Ok, that's good to know. I've planned to move my ISO-TP work from mbed to Teensy.After locking fix I have had 0 loss. Also current write may mix the order of send messages and right order is important specially with NMEA 2000 protocol fastpackets.
Ok, if I'll find some time I will look after this. The mbed version is currently based on mbed multithreading, so the first step is to decide about a redesign.By the way I had to add ISO-TP reception handling to NMEA 2000 library, since that was mandatory feature. It currently does not have ISO-TP sending.