Skip to content

TMS on FreeRTOS #511

@BlakeFreer

Description

@BlakeFreer

Convert TMS to FreeRTOS. Use FrontController as a template

  1. Open the IOC in STM32CubeMX 6.15 and enable FreeRTOS under Middlewares
  2. Also open FrontController's ioc in another CubeMX window. Diligently copy all of FrontController's FreeRTOS settings for TMS.
  3. Remove the cli environment and platform/ since FreeRTOS is not supported on PC's

    After this issue, consider trying RTOS on Linux / POSIX #206 so that we can run RTOS projects in SIL. good luck :)

  4. Copy the FreeRTOS library lines from front_controller/platformio.ini into tms/platformio.ini so that the STM compiler can find the FreeRTOS source code.
  5. Following the style of FrontController main.cc, convert TMS's main.cc to use FreeRTOS tasks. TMS only needs a single 10 Hz task.
  6. Coordinate with Kartikeya on the electrical team to find time to flash and test the TMS code. You should connect to the CAN bus and make sure that the TMS's CAN messages are being sent at 10 Hz and that the temperature values look reasonable (i.e. temperatures should probably bee around room temperature).

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions