Finish hardware and add programming instructions
parent
50bf2df20a
commit
6c75e8fbd1
|
@ -32,6 +32,29 @@ In the following diagram, P1/DFU is labelled BOOT.
|
|||
|
||||
![pvbv11-pinout](https://micropython.org/resources/pybv11-pinout.jpg)
|
||||
|
||||
Next, connect the following pins from the ST-Link/v2 to the pyboard. Refer to the [ST-Link/v2 User Manual](https://www.st.com/resource/en/user_manual/dm00026748.pdf).
|
||||
|
||||
```
|
||||
ST-Link/V2 | pyboard v1.1
|
||||
----------------- | -------------
|
||||
PIN1 (VAPP) -> 3V3
|
||||
PIN7 (TMS_SWDIO) -> PA13 (X21-2)
|
||||
PIN9 (TCK_SWCLK) -> PA14 (X20-2)
|
||||
PIN13 (TDO_SWO) -> PB3 (X17-1) (Optional debug serial)
|
||||
PIN15 (NRST) -> RST
|
||||
PIN20 (GND) -> GND
|
||||
```
|
||||
|
||||
# Programming
|
||||
|
||||
You can now program/debug using any software that support the ST-Link/v2. One such program is [OpenOCD](http://openocd.org/).
|
||||
|
||||
```bash
|
||||
$ openocd -f board/stm32f4discovery.cfg -c "program app.elf" -c reset -c shutdown
|
||||
```
|
||||
|
||||
Debugging has been tested to work under CLion.
|
||||
|
||||
# References
|
||||
|
||||
- [Programming the STM32F4DISCOVERY using External ST-Link/v2](https://electronics.stackexchange.com/a/410840/194001)
|
||||
|
|
Loading…
Reference in New Issue