除了 OpenOCD 默认的 \share\openocd\scripts 目录外,我们还可以指定其它的搜索目录。 -d 选项:指定日志级别。当我们在开发自已的 MCU 烧录算法出现 bug 时,大部分情况下需要通过观察日志来解决,此时可以使用 -d3 选项来打开 debug 日志 -l 选项:指定日志输出文件。 -c 选项:指定 OpenOCD 需要运行的命令。当...
openocd-fG:\develop_tools\openOCD\xpack-openocd-0.11.0-1\scripts\interface\stlink-v2-1.cfg-fG:\develop_tools\openOCD\xpack-openocd-0.11.0-1\scripts\target\stm32l4x.cfg-c init-c halt-c"flash write_image erase E:/MCU/STM32L431RC-BearPi/usart1-fpu-test/build/usart1-fpu-test.bin ...
然后使用sudo make,最后使用sudo make install即可成功安装,安装后在/usr/local/share目录即可看到openocd目录: 它下面scripts文件夹存放着openocd使用的文件,在interface文件夹下存放着下载器接口的文件,在target下存放着目标芯片的配置文件: 在这里插入图片描述 3.使用openocd连接到目标芯片 openocd的一些参数描述如下:...
bash$ openocd --help--help | -h display this help--version | -v display OpenOCD version--file | -f use configuration file <name>--search | -s dir to search for config files and scripts--debug | -d set debug level to 3| -d<n> set debug level to <level>--log_output | -l...
Run a PSoC acquisition sequence immediately. Typically, this should not be used outside of the target-specific configuration scripts since it hard-resets the target as a side-effect. This is necessary for “reset halt” on some PSoC 4 series devices. ...
其中接口配置文件是openOCD支持的下载接口,在 scripts\\interface 文件夹下:目标芯片配置文件是openOCD...
F:\Espressif\tools\openocd-esp32\v0.11.0-esp32-20220706\openocd-esp32\share\openocd\scripts> 官方OpenOCD 官方接口支持CMSIS-DAP,但是芯片并不支持ESP32 有cmsis-dap.cfg 没有esp32的cfg 使用官方OpenOCD,配置文件使用乐鑫的,CMSIS-DAP可以正常识别,但确实不支持ESP32芯片 ...
示例:openocd -s /path/to/scripts --telnet_port <port>: 指定Telnet服务器端口,用于调试会话。 示例:openocd --telnet_port 4444 --gdb_port <port>: 指定GDB服务器端口,用于连接GDB调试器。 示例:openocd --gdb_port 3333 --tcl_port <port>: ...
1.1 安装J-Link软件包 1)下载deb包https://www.segger.com/downloads/jlink/ 2) sudo dpkg -i JLink_Linux_V750a_x86_64.deb 3) 检测有没有安装上:找到路径 /opt/SEGGER/JLink/ ;终端执行JLinkExe,能进入则成功。 usb status SEGGER JLink
目标芯片配置文件是openOCD支持的目标芯片,在scripts\target文件夹下; 比如这里我使用ST-Link v2-1下载器+STM32L431RCT6,结果如图: 2. 下载程序 成功连接到目标芯片后,需要使用 telnet 协议连接到 openOCD 终端,端口4444,这里我使用mobaxterm: 连接之后需要注意,此时终端所在的路径是openOCD开启服务的路径,可以使用...