/
2022-01-17

2022-01-17

MCU situation

  • Looking at chinese knockoffs

  • Notes of change from switching:

    • Bootloader - hardware layer would have to change

    • ms-common would need some pretty major rewrites

      • In future, maybe keep hardware layer as thin as possible

FreeRTOS Design

  • ms-common relies on callbacks for interrupt-dependent behaviour

    • Not a good way to go about this

  • Subscribe model for events

  • Read, process, post

    • Project runs through a cycle, blocks for predetermined interval after work is complete

    • Calls read data, executes functionality, txes any require data

    • Peripherals all run in separate tasks, so can execute concurrently

    • Reads of peripheral data happen regardless of whether new data has arrived

    • ISR stores data in shared memory, read task responsible for copying to fsm task

    •  

  • Pick your favourite project, design it using your favourite method.

 

Related content

2021-11-17 Firmware design meeting
2021-11-17 Firmware design meeting
More like this
2022-01-24 Design Meeting
2022-01-24 Design Meeting
More like this
2021-01-10 FW Design Meeting
2021-01-10 FW Design Meeting
More like this
Firmware - Getting Started
Firmware - Getting Started
Read with this
2022-01-31 Design Decisions:
2022-01-31 Design Decisions:
More like this
Firmware 102 - Intro to FreeRTOS
Firmware 102 - Intro to FreeRTOS
More like this