Add software setup guide

master
johnthagen 2019-03-05 08:28:08 -05:00
rodzic e23a630fb5
commit 3a8745000b
1 zmienionych plików z 12 dodań i 3 usunięć

@ -6,10 +6,19 @@ The pyboard does, however, lack an onboard, pre-wired ST-Link/v2 programmer that
# Prerequisites
- pyboard v1.1
- ST-Link/v2
- [pyboard v1.1](https://store.micropython.org/product/PYBv1.1)
- [ST-Link/v2](https://www.st.com/en/development-tools/st-link-v2.html) (the -ISOL version is not needed)
- 5 Male to Female Jumper Wires
# Software Setup
Before any hardware is set up, let's first set up a new C project from which to develop. Download [STM32CubeMX](https://www.st.com/en/development-tools/stm32cubemx.html) and when creating a new project, select STM32F405RG from the product selector.
You can now configure IO pins, interrupts, etc. Selecting Generate Code will generate an entire C project based on the configured IDE settings.
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).
# References
- [Programming the STM32F4DISCOVERY using External ST-Link/v2](https://electronics.stackexchange.com/a/410840/194001)
- [Symbolic Debugging for STM32](https://github.com/micropython/micropython/wiki/)
- [Symbolic Debugging for STM32](https://github.com/micropython/micropython/wiki/)