This example shows how using an stm32 PAC works and what is required. This example does the same things as rust-low-level and the goal is to understand the advantages that this higher level API provides.
$ cargo build
Start openocd:
$ openocd -f board/stm32f0discovery.cfg
Start a telnet session:
$ telnet localhost 4444
Flash the program:
> reset halt
> flash write_image erase target/thumbv6m-none-eabi/debug/rust-pac
> reset run
Running should turn on the led:
Debug:
$ arm-none-eabi-gdb target/thumbv6m-none-eabi/debug/rust-pac