diff --git a/Programming-Debugging-the-pyboard-using-ST-Link-v2.md b/Programming-Debugging-the-pyboard-using-ST-Link-v2.md index 8c13a21..abd8e61 100644 --- a/Programming-Debugging-the-pyboard-using-ST-Link-v2.md +++ b/Programming-Debugging-the-pyboard-using-ST-Link-v2.md @@ -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/) \ No newline at end of file +- [Symbolic Debugging for STM32](https://github.com/micropython/micropython/wiki/)