Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/birkenfeld/stm_freqctr
https://github.com/birkenfeld/stm_freqctr
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/birkenfeld/stm_freqctr
- Owner: birkenfeld
- Created: 2019-05-19T09:27:25.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-05-31T13:58:06.000Z (over 3 years ago)
- Last Synced: 2024-10-31T10:43:04.803Z (3 months ago)
- Language: Rust
- Homepage:
- Size: 17.6 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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`.