📄 flash.cfg
字号:
# Open On-Chip Debugger
# (c) 2005 by Dominic Rath
# (snapshot r247 from SVN tree + giveio, no official release, compiled my mifi)
#
# --help | -h display this help
# --file | -f use configuration file <name>
# --debug | -d set debug level <0-3>
# --log_output | -l redirect log output to file <name>
# daemon configuration
# logging
#debug 3
# default ports
telnet_port 4444
gdb_port 3333
daemon_startup reset
#gdb_flash_program enable
# interface configuration
interface ft2232
#ft2232_device_desc "Olimex OpenOCD JTAG A"
ft2232_device_desc "Olimex OpenOCD JTAG TINY A"
ft2232_layout olimex-jtag
jtag_speed 10
jtag_nsrst_delay 100
jtag_ntrst_delay 100
reset_config trst_and_srst
# scan chain configuration
# jtag_device L IRC IRCM IDCODE (Length, IR Capture, IR Capture Mask, IDCODE)
jtag_device 4 0x1 0xf 0xe
jtag_device 5 0x1 0x1 0x1e
# target configuration
# target <type> <startup mode>
# target cortex_m3 <endianness> <reset mode> <chainpos> <variant>
#target cortex_m3 little reset_halt 0
#target cortex_m3 little run_and_halt 0
#target cortex_m3 little reset_init 0 (this causes scripted flash write_image to fail)
target cortex_m3 little run_and_init 0
# run_and_halt_time <target> <time_in_ms>
run_and_halt_time 0 0
# working_area <target> <address> <size> <backup|nobackup>
working_area 0 0x20000000 0x5000 nobackup
# flash bank <driver> <base> <size> <chip_width> <bus_width> <target> [options]
# flash bank stm32x <base> <size> 0 0 <target>
flash bank stm32x 0x08000000 0x20000 0 0 0
# script configuration
# target_script <target> <event> <script_file>
target_script 0 reset flash.script
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -