Update or Re-Flash via ST-Link
pdating via the ST-Link provides a reliable and easy way to flash any STM based MCU's especially if you have issues entering DFU mode, the only time where it becomes problematic is when older/fake ST-Links are used, please see the notes and ways of identifying below.
Requirements
ST-Link v2 (Below is a table of the most common ST-Link v2s. There are obviously more available on the market.
Image
Note
Uses fake STM Chip, Pin order is different and isnt always recognised via STM Cube Programmer.
Occasional Issues, depending on age / firmware.
Most Reliable
STMCubeProg Compatible
❌
May not work
✅
STM Cube Programmer - (recommended version v2.15.0) - if using Windows or MacOS
4x DuPont M-M or M-F Cables
Cartographer V3 Probe
Step 1 - Wire up your probe
Connect the following pins based upon the different ST-Links.
ST-Link V2
SWDIO - SWD SWCLK - SCL GND - GND VCC - 5V
ST-Link V2 Mini (Fake Chip)
SWDIO - SWD SWCLK - SCL GND - GND 3.3V*- 5V * 5v may also work , but on some mini's it can cause stability issues.
ST-Link V2 Mini
SWDIO - SWD SWCLK - SCL GND - GND 3.3V*- 5V * 5v may also work , but on some mini's it can cause stability issues.
Connect your probe to the STLink connectors to the left and the right of the JST connector.
You do NOT need to solder in the connector, pressure fit is fine.
If using Windows follow the next steps, if you are using Linux (Pi) click here
Open STM32CubeProg
Select Open File and select the file you want to open. For this, I recommend flashing the FULL complete firmware files, which include both bootloader and Cartographer firmware.
Step 3 - Check the Settings
Ensure that you are writing to the correct memory location
If your firmware is from the combined-firmware
folder or starts with the words Katapult
, ensure that the address is set to 0x08000000
Ensure that you have ST-LINK slelected on the right (this can default to DFU mode if you havnt used this before)
Now press Connect and the screen should indicate that the probe is Connected
Flash and Confirm Firmware
Press download to Download the firmware to your Cartographer
The output should look something like this
Press Disconnect and unplug the probe.
Flashing via Linux (Pi)
SSH into your 3D Printer using your client of choice
Run the following command (this may take a little while)
Navigate to the folder where your firmware is stored, usually
Check if the ST-Link has been detected using
lsusb
if it is not visable, unplug and re-plug it back in.
run the following command replacing firmware.bin and the memory address with the correct address for the firmware that you are using.
For example to flash the Survey CAN firmware
Upon completion, you should see something like this
Reconnect your probe to your printer
Reconnect your probe to your 3D Printer, and it should work perfectly :)
Last updated