Skip to content

Instantly share code, notes, and snippets.

@max-dark
Created February 26, 2025 19:21
Show Gist options
  • Save max-dark/ca2f8e9e2f0a1ac0716280d1148b32fa to your computer and use it in GitHub Desktop.
Save max-dark/ca2f8e9e2f0a1ac0716280d1148b32fa to your computer and use it in GitHub Desktop.
OpenOCD config for GD32F1xx MCU
# file gd32f1xx.cfg
# script for gd32f1x family
set CPUTAPID 0x2ba01477
# optional name
set CHIPNAME gd32f1x
# autodetect flash size
# set FLASH_SIZE 0
# use SWD
source [find interface/stlink.cfg]
transport select hla_swd
source [find target/stm32f1x.cfg]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment