Coder Social home page Coder Social logo

crazybolillo / stm32f401xc Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 39 KB

Bunch of programs for a STM32F401CCU6. Using CMSIS, FreeRTOS and TinyUSB

License: BSD 3-Clause "New" or "Revised" License

CMake 8.31% C 91.69%
arm cmsis freertos stm32 tinyusb

stm32f401xc's Introduction

stm32f401xc

This is a collection of programs using a STM32F401CCU6 chip. Most if not all of them follow a similar structure:

  • FreeRTOS is used to schedule tasks.
  • TinyUSB is used for the USB stack.
  • Most data is displayed through a USB CDC connection (can be seen with a serial monitor).
  • Whenever possible, only CMSIS5 is used to configure/use the hardware registers. USB is an exception since I value my mental sanity.

Overall this project should be of help in the following cases:

  • Need some simple examples on how to use FreeRTOS in "real life".
  • Want to see how the TinyUSB stack is used for serial-like communication.
  • Need an example of how to set up some hardware modules with pure register access (no HAL).

I should mention at this point that I am not an authoritative source of information. I personally enjoy the way I have set up all code in this project (using clang-format and clang-tidy), but who knows, maybe it's all crap.

Building

This project uses CMake and assumes you have a working ARM toolchain setup on your computer. The build process has only been tested (at least that I know of) on Linux systems (specifically Arch Linux btw). You need to use one of the toolchain files provided in the vendor/arm-cmake folder. For example, to build all programs in this repository, use:

cmake -DCMAKE_TOOLCHAIN_FILE="vendor/arm-cmake/clang-arm-gcc-toolchain.cmake" -S./ -B./build
cmake --build build

stm32f401xc's People

Contributors

crazybolillo avatar

Stargazers

 avatar

Watchers

 avatar

stm32f401xc's Issues

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.