Giter Site home page Giter Site logo

genx_side_board_panel's Introduction

Side Panel Board Functional Requirements


Sensors to Poll

This is all the data it should collect, the frequency at which they should be sent, and how they should be collected.

  • Button state: 50ms
    • SW<7:1> states. Pretty direct, just read the GPIO.

Protocol

  • Serial is set up at 115200 bps 8N1. Use USART2, the one exposed on the header.
  • Data is sent in raw bytes, little endian
  • Simply sign extend any data that’s not a nice size.
  • Start every frame with 0xa5, followed by data identifier 0x04.
  • Append every frame with CRC-32 checksum. Just poll for CRC, don’t bother with DMA. Use the default (reset value) ethernet checksum in the hardware CRC peripheral. Don’t enable any bit swapping
  • Don’t bother with endianess, make the message a packed struct with the appropriate widths for each value and just write to the struct
  • Frame format: ({name[size]})
    • 0x04: Button data
      • {0xa5[8], 0x04[8], {0b0[1], SW7[1], SW6[1], SW5[1], SW4[1], SW3[1], SW2[1], SW1[1]}[8], CRC[32]}

Setup

  • Install Atollic TrueStudio. Ask Manu for a download if their site is still down at the time of reading.
  • Install STM32CUBEMX. Open the .ioc file in the folder with it. You will be able to see pinouts and generate boilerplate code. Ask James to review your clock tree. Poke around to see all the relevant options; the interface is jank but everything you need is there somewhere.
  • Plug the 5 pins on the debug header to the corresponding pins on the programmer, and you’re good to go
  • Preferably use FreeRTOS. A quick guide to the API can be found here: FreeRTOS - Quick start guide
  • If you don’t want to deal with RTOS, a superloop is also okay. Just review the STM32CUBE HAL API included.

genx_side_board_panel's People

Contributors

andrewmaksymowsky avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.