In order to create the version of Sensor Tutorial, which uses the PlatformIO IDE I need to verify my understanding of the process of using the SWD Programmer & Debugger. This is a self imposed task, which might be of value to other community members.
I believe that each successive upload of a “sketch” requires resetting the MCU, process explained in Programming Swan without the STLink-V3Mini)
Press and hold the
BOOTbutton on the Swan, press and release
RESET, then release
BOOTto cause the Swan to jump into its boot loader mode.
Image 1 - graphical context showing reseting the MCU to bootstrap mode.
This reboot is required to allow that the connection between my development machine (micro USB cable , green marker 1) be used in a dual mode (interactive and programmatic, where the default mode is _interactive_.
IS THE TEXT ABOVE CORRECT???
My development system
Image 2 - my development system
Debugging with PlatformIO IDE
I plan to use STLINK-V3MINI hardware, expecting that it will provide me the ability to use the MCU in both interactive and programmatic mode, without having to reset the Swan MCU every time, I change the code (firmware)
The STLINK-V3MINI is a stand-alone debugging and programming mini probe for STM32 microcontrollers, like the Swan SwAN MCY Use the JTAG/SWD interfaces to connect to the Swan via its onboard connector for simple programming or debugging.
Image 3 - STLINK-V3MINI as sold by Blues Wireless
Is the STLINK-V3MINI on Image 3 functionally the same as STLINK-V3 Modular in-Circuit debugger and Programmer for STM32/STM8 sold on Amazon? What would be the benefit of using one over the other?
Image 4 - STLINK-V3 Modular-Circuit-debugger-Programmer
Is there a detailed description how to connect this hardware to the Swan board ? Just looking at Image 3 or Image 4 does not give such information.