Running current CAN/CAN FD stack core should be completely hardware agnostic. It should run everywhere where RTEMS runs. The virtual device can be registered by rtems_can_virtual_initialize and it can be used then. The registration of the virtual CAN device/channel is shown in the example code in the rtems_can_test/can_virtual.c. The registration of the set of CAN test commands into RTEMS shell is shown in the rest of the test code rtems_can_test. This Michal Lenc implemented code had main goal to test the implementation, priority preemption principles, latency and more. It would worth to integrate some simplified examples into mainline RTEMS tests directory to provide simpler examples how to start own applications.
1 Like