Hi Spyderbreath,I'll write down the steps I followed to create the DAPLink. I worked on Linux, so some parts may differ on Windows.1. I bought ST-Link devices.
2. I prepared the hardware based on the first part of
Scott3D’s YouTube video
:
It clearly shows the soldering process.
He uses the ST-Link Utility, but since it's not available on Linux, I used
STM32CubeProgrammer,
which works on both Linux and Windows:
I connected the four soldered wires to the ST-Link as follows:
3V3 → 3V3
GND → GND
SWCLK → CLK
SWDIO → DO
(The rest of the video is not relevant for this process.)
3. I downloaded (or cloned) the
Remora-RT1052
repository.
It contains a CMSIS-DAP folder, and inside it, the CMSIS-DAP-STLINK21.hex file.
4. I opened STM32CubeProgrammer, plugged in the ST-Link device,
clicked “Connect” (top right corner), and once connected, the left-side menu became available.
Then:
Clicked the “OB” (Option Bytes) button
Under Read Out Protection, I unchecked the “RDP” flag.
5. I went back to the main menu (Memory & File Editing):
Clicked “Open File” → selected CMSIS-DAP-STLINK21.hex
Clicked “Download” to flash the firmware.
Now the DAPLink is ready to use. (Note: This version of DAPLink doesn't support drag-and-drop (MSC), so we’ll flash the RT1052 using pyOCD instead.)
6. I created a temporary folder (e.g., remora_flash) and set up a Python virtual environment inside it:
Code:
python3 -m venv .venv
source .venv/bin/activate
pip install pyocd
Plug in the DAPLink via USB and check if it's detected:
Example output:
Code:
# Probe/Board Unique ID Target
--------------------------------------------------
0 X893 ARM CMSIS-DAP 0001A0000000 n/a
7. Finally, I flashed the firmware to the RT1052.
Clone or download the
Remora-RT1052-cpp
repository.
In the Firmware folder, you’ll find the binary image: remora-rt1052-3.1.3.bin.
Connect the board via DAPLink and flash it using:
Code:
pyocd flash remora-rt1052-3.1.3.bin --target mimxrt1050_quadspi
8. Configuration upload is described in Daz’s post.
Hope this helps!