Releases: pierremolinaro/acan-t4
Fixed documentation title
1.1.8 Version 1.1.8
Fixed many typos, files and constant renaming
Fixed many typos (Thanks to Bryan Miller for his attentive proofreading)
CANMessage.h
renamed to ACAN_T4_CANMessage.h
CANFDMessage.h
renamed to ACAN_T4_CANFDMessage.h
Constant kFlexCANinCANFDBMode
renamed to kFlexCANinCANFDMode
Fixed CANFD receive filters
The CANFD mode receive filters were wrong (thanks to Bryan Miller), this bug has been fixed.
The LoopBackDemoIntensiveCAN3FDFilters
sketch has been updated.
Added CANMessage and CANFDMessage class union members
Added data_s64
, data_s32
, data_s16
and data_s8
to CANMessage
and CANFDMessage
class union members (thanks to tomtom0707
).
Adding the 24 MHz CAN Root Clock
In previous releases, the CAN root clock frequency is always 60 MHz. This release adds the choice between two clocks, 60 MHz (default value) and 24 MHz. In particular, the 615 kbit/s bitrate can be achieved by the 24 MHz clock, whereas it cannot be achieved with sufficient accuracy by the 60 MHz clock.
Note that the Teensy 4.x microcontroller also has a CAN root clock of 80 MHz. But its use is more complex, due to the ERR050235 silicon mask bug. So we decided not to use it.
Fixed FPROPSEG setting
Thank to Liz for fixing this bug.
According to the processor manual, the prop seg timeout is calculated from the FDCBT_PROPSEG value by multiplying it with the sclock directly. The value is not increased by one beforehand¹.
In the reference manual the calculation of the segment time is stated as:
Propagation Segment Time = FPROPSEG × Time-Quanta
This is indeed different to the programming of the CAN2.0 Interface (CBT_PROPSEG)², where the calculation is:
Propagation Segment Time = (EPROPSEG + 1) × Time-Quanta.
Sources:
¹: i.MX RT1060 Processor Reference Manual, Rev. 2, 12/2019 / Chapter 45.6.2.22.4 / Page 2701
²: i.MX RT1060 Processor Reference Manual, Rev. 2, 12/2019 / Chapter 45.6.2.19.4 / Page 2695
Added x9 and x10 data bit rate factors
Thanks to Pedro Dionisio Pereira Junior
1.1.1
Added dataFloat to CANMessage (thanks to Koryphon);
Added several forgotten volatile.
Compatibility with ACAN2517FD library
1.1.0 Version 1.1.0
Initial Release
1.0.0 Typo