File contents J-Link Firmware Flashing
Invoke py_jlink_download.py to flash firmware files to target chips via J-Link debugger, supporting full process of erase, flash, verify, and reset.
Tool Script
Script Path : py_jlink_download.py
Dependencies : Python 3.x + pylink library
pip install pylink
Usage
# Basic usage (default chip GD32F103C8)
python py_jlink_download.py firmware.bin
# Specify chip model
python py_jlink_download.py firmware.bin -d STM32F103C8
# Specify flash start address
python py_jlink_download.py firmware.bin -a 0x08001000
# Skip erase and verify (faster)
python py_jlink_download.py firmware.bin --no-erase --no-verify
Parameter Description
Parameter
Short
Description
Default
firmware
-
Firmware file path (.bin or .hex)
Required
--device
-d
Target chip model
GD32F103C8
--addr
-a
Flash start address
0x08000000
--no-erase
-
Skip chip erase before flashing
Default erase
--no-verify
-
Skip flash data verification
Default verify
--no-run
-
Do not reset and run after flash
Default reset
Flash Process
Initialize and connect J-Link
Connect to target chip (SWD interface)
Erase chip (optional)
Write firmware file
Read memory to verify data (optional)
Reset and run program (optional)
Common Chip Models
GD32F103C8 / GD32F303RC
STM32F103C8 / STM32F103RET6
If chip model is unknown, run JLinkDevices command to view the complete device list supported by J-Link.
Notes
Ensure J-Link debugger is connected to both computer and target board
Chip model must exactly match the name in J-Link database
For .hex file flashing, verification step errors can be ignored (hex format contains address information)
1 --- 2 name: jlink-download 3 description: J-Link Firmware Flashing 4 --- 5 6 # J-Link Firmware Flashing 7 8 Invoke `py_jlink_download.py` to flash firmware files to target chips via J-Link debugger, supporting full process of erase, flash, verify, and reset. 9 10 ## Tool Script 11 12 **Script Path**: `py_jlink_download.py` 13 **Dependencies**: Python 3.x + `pylink` library 14 15 ```bash 16 pip install pylink 17 ``` 18 19 ## Usage 20 21 ```bash 22 # Basic usage (default chip GD32F103C8) 23 python py_jlink_download.py firmware.bin 24 25 # Specify chip model 26 python py_jlink_download.py firmware.bin -d STM32F103C8 27 28 # Specify flash start address 29 python py_jlink_download.py firmware.bin -a 0x08001000 30 31 # Skip erase and verify (faster) 32 python py_jlink_download.py firmware.bin --no-erase --no-verify 33 ``` 34 35 ## Parameter Description 36 37 | Parameter | Short | Description | Default | 38 | ------------- | ----- | ---------------------------------- | ------------- | 39 | `firmware` | - | Firmware file path (.bin or .hex) | **Required** | 40 | `--device` | `-d` | Target chip model | `GD32F103C8` | 41 | `--addr` | `-a` | Flash start address | `0x08000000` | 42 | `--no-erase` | - | Skip chip erase before flashing | Default erase | 43 | `--no-verify` | - | Skip flash data verification | Default verify | 44 | `--no-run` | - | Do not reset and run after flash | Default reset | 45 46 ## Flash Process 47 48 1. Initialize and connect J-Link 49 2. Connect to target chip (SWD interface) 50 3. Erase chip (optional) 51 4. Write firmware file 52 5. Read memory to verify data (optional) 53 6. Reset and run program (optional) 54 55 ## Common Chip Models 56 57 - `GD32F103C8` / `GD32F303RC` 58 - `STM32F103C8` / `STM32F103RET6` 59 60 > If chip model is unknown, run `JLinkDevices` command to view the complete device list supported by J-Link. 61 62 ## Notes 63 64 - Ensure J-Link debugger is connected to both computer and target board 65 - Chip model must exactly match the name in J-Link database 66 - For `.hex` file flashing, verification step errors can be ignored (hex format contains address information)
changde-tang/embedded-skills/tree/main/jlink-download commit 0246ce2453
Frequently asked questions How do I install the Jlink Download skill? Run npx skillmds@latest add changde-tang/jlink-download in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
What does the Jlink Download skill do? J-Link Firmware Flashing It is listed under Coding & Dev Tools on SkillMD.
Is Jlink Download safe to use? This skill has not completed SkillMD's automated safety review yet. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
Which AI agents work with Jlink Download? This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Is Jlink Download free to use? Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
Who published Jlink Download? changde-tang (@changde-tang) published this skill. Their other Agent Skills are listed on their SkillMD profile.