Begin hardware setup guide

master
johnthagen 2019-03-05 08:33:52 -05:00
rodzic 3a8745000b
commit 50bf2df20a
1 zmienionych plików z 14 dodań i 0 usunięć

@ -18,6 +18,20 @@ You can now configure IO pins, interrupts, etc. Selecting Generate Code will gen
One such configuration that has been tested in using [CLion](https://www.jetbrains.com/clion/) and it's [OpenOCD plugin](https://github.com/elmot/clion-embedded-arm/blob/master/USAGE.md).
# Hardware Setup
First, connect the ST-Link/v2 USB cable to your development host.
Second, from the [micropython README](https://github.com/micropython/micropython#the-stm32-version):
> connect the 3V3 pin to the P1/DFU pin with a wire (on PYBv1.1 they are next to each other on the bottom left of the board, second row from the bottom).
This is needed because the programming pins on the pyboard are shared with LEDs, so if the MicroPython firmware it running, it conflicts with the ST-Link/v2 programming.
In the following diagram, P1/DFU is labelled BOOT.
![pvbv11-pinout](https://micropython.org/resources/pybv11-pinout.jpg)
# References
- [Programming the STM32F4DISCOVERY using External ST-Link/v2](https://electronics.stackexchange.com/a/410840/194001)