Update via STLink
Last updated
Last updated
Flashing via a STLink is super simple, and requires a STLink v2 (or similar). Unfortunatly you cannot use a standard TTL-USB adaptor.
This method only works on V2 and V3 probes with the STLink connection points next to the USB Port.
I have only personally tested this on a ST-LINK/V2 Mini with modern firmware on it - some older V2's will not work with STM32CubeProgrammer.
Wiring is super simple (diagram will be added soon), connect the following to each other
3.3v
5v
5v-5v will work, but seems less reliable, could have been my ST-LINK, but 3.3v works perfectly
GND
GND
SWDIO
SWD
SWCLK
SCL
Download and Install STM32CubeProgrammer from here, I warn you it requires you to sign up for an account.
Version 2.14.0 is recommended due to a known bug in 2.16.0 which causes issues when flashing via STMCubeProgammer - this can be selected from the version 'drop down' on the site.
Open the STMCubeProgrammer, and on the RIGHT side, select select STLink from the drop down menu and press Connect.
Once you have connected, Click Open File - you will need to select both the Katapult Bootloader for your board, and your Cartographer Firmware that you have downloaded.
For your Cartographer Firmware, you need to set the address to 0x08002000
This provides the 8KiB offset for the firmware. Katapult firmware can be flashed at the default 0x08000000.
If in doubt about what address to use, please check the relevent tables here
On each of the firmware's press "Download", starting with Katapult, then with Cartographer. Now press Disconnect in the TOP RIGHT corner.
If your BLUE LED is Flashing, you have not fully flashed your Firmware, and you should start again, If you now Power Cycle your probe, or simply hit the RESET (2) pads from earlier, your probe should react when it has anything solid metal put under it.