Skip to content

Instantly share code, notes, and snippets.

@koi8-r
Created May 31, 2025 11:39
Show Gist options
  • Select an option

  • Save koi8-r/5620235ba0678869eb22ab70c6a3ba5a to your computer and use it in GitHub Desktop.

Select an option

Save koi8-r/5620235ba0678869eb22ab70c6a3ba5a to your computer and use it in GitHub Desktop.
stm32f411 openocd config
# STM32F411CEU6: 100MHz Arm Cortex-M4 core with DSP and FPU, 512KB Flash, 128KB SRAM, ART Accelerator
# https://stm32-base.org/boards/STM32F411CEU6-WeAct-Black-Pill-V2.0.html
# increase working area to 128KB
set WORKAREASIZE 0x20000
set CHIPNAME STM32F411CEU6
source [find interface/stlink.cfg]
# source [find interface/stlink-dap.cfg]
# source [find interface/stlink-v2-1.cfg]
transport select hla_swd
# transport select swd
# transport select dapdirect_swd
# reset_config srst_only srst_nogate connect_assert_srst
# srst_only separate srst_nogate srst_open_drain connect_assert_srst
# set CONNECT_UNDER_RESET 1
# set CORE_RESET 0
# set AP_NUM 0
# set GDB_PORT 3333
source [find target/stm32f4x.cfg]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment