Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/birkenfeld/stm_freqctr


https://github.com/birkenfeld/stm_freqctr

Last synced: about 1 month ago
JSON representation

Awesome Lists containing this project

README

        

## Frequency counter on a STM32F303

Uses PA0 as the input pin, which triggers counting on TIM2.

Writes output to USART2 on pins PA2/PA3, which are connected
to the USB-ACM port if using a Nucleo board.

The user-LED on PA5 toggles every second to show operation.

### Build

Using nightly Rust and cargo, just do a `cargo build --release`.

### Flash

The default method uses openocd and GDB. Start openocd using a config
matching your programming adapter (the provided `openocd.cfg` assumes
ST-Link v2). Then `cargo run --release` runs GDB, flashes and runs the
image. `openocd` should just keep running in the background.

An alternate way is to use the `st-flash` utility. To use this from
`cargo run --release`, change the runner in `.cargo/config`.