Northeastern-Electric-Racing / Cerberus

Our FreeRTOS-based vehicle control application
1 stars 0 forks source link

[CAN] - Validate CAN Driver with Renode #104

Closed nwdepatie closed 6 months ago

nwdepatie commented 7 months ago

Description

We have a "CAN Driver" that implements super simple wrapper functions around the somewhat intimidating HAL calls for CAN. We also have Renode, which can emulate a CAN bus for machine to machine connections. I want to leverage Renode to verify that the STM HAL calls we are making are correctly set which will 1. implement the emulated CAN bus in Renode and 2. verify the driver we made.

Acceptance Criteria

  1. A virtual CAN bus in Renode should be made automatically
  2. The CAN driver found in Embedded-Base should be validated and changed if anything doesn't work
  3. Get the CAN dispatch task working in Renode
  4. Stretch: Get the CAN handler task working in Renode

Proposed Solution

This implementation should span across a couple different files, specific the cerberus.resc renode script, can_handler.h/c in Cerberus, and can.h/c in Embedded Base