GithubHelp home page GithubHelp logo

timesaver_stm32's Introduction

TimeSaver project for STM32F7x7 boards

Basically, this is an implementation for a cooking timer, where an encoder is used to set desired minutes and an internal counter waits this given time, until an alarm is displayed.

More technically, this is a Rust embedded project that deals with a 16x2 character LCD, an encoder (handled with external interrupts) and a timer interrupt that dictate system events. A simple state machine goes through an initial splash screen, then the counter setup, the actual countdown and finally the alarm.

Dependencies

Required target is thumbv7em-none-eabihf, nightly. It is automatically set up thourgh rust-toolchain.toml.

cargo install cargo-embed

Build and upload

Project can be build with cargo build, or build and uploaded with cargo embed. Serial RTT channels can be opened with cargo embed --config with_rtt. Note that somehow it does not work on Clion terminals.

Debug

Breakpoint debug can be achieved with a VSCode plugin, probe-rs-debugger. Install it with:

# VSC plugin (check for new releases here: https://github.com/probe-rs/vscode/releases)
wget https://github.com/probe-rs/vscode/releases/download/v0.4.0/probe-rs-debugger-0.4.0.vsix
code --install-extension probe-rs-debugger-0.3.3.vsix

# debugger server
cargo install --force --git https://github.com/probe-rs/probe-rs probe-rs-debugger

The target board can be then debugged through VSCode, thanks to .vscode/launch.json file. Further details on how to edit this file can be found in the official documentation.

References

Base project configuration for STM32F7x7 boards can be obtained from rust-embedded/cortex-m-quickstart template:

cargo generate rust-embedded/cortex-m-quickstart

Main references used to achive this project:

timesaver_stm32's People

Contributors

maik93 avatar

Watchers

 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.