16 lines
581 B
INI
16 lines
581 B
INI
# stm32_flash.cfg
|
|
|
|
# Source the interface configuration using the full default path.
|
|
# Debugprobe is a CMSIS-DAP compatible probe.
|
|
source /usr/share/openocd/scripts/interface/cmsis-dap.cfg
|
|
|
|
# Set the transport protocol
|
|
transport select swd
|
|
|
|
# Source the target configuration for your specific STM32 model using the full path.
|
|
# I used an STM32F1 series chip. Change this to match your target!
|
|
# e.g., /usr/share/openocd/scripts/target/stm32f4x.cfg
|
|
source /usr/share/openocd/scripts/target/stm32f1x.cfg
|
|
|
|
# (Optional) Increase the adapter speed for faster flashing
|
|
adapter speed 5000 |