GithubHelp home page GithubHelp logo

wuxx / openocd-toolbox Goto Github PK

View Code? Open in Web Editor NEW
130.0 6.0 29.0 9.16 MB

OpenOCD工具箱 (温馨提示:请点击本页面右侧绿色按钮处下载zip压缩包)

License: GNU General Public License v3.0

C 16.68% Batchfile 1.64% Shell 2.03% Perl 0.56% Makefile 1.29% Assembly 24.20% Python 8.83% Haskell 0.37% Tcl 44.39%

openocd-toolbox's Introduction

中文 English

OpenOCD工具箱

OpenOCD介绍

OpenOCD是一个开源的调试软件,称之为世界上最强大的开源调试软件并不为过,经过数十年的开源社区的推动发展,当今其可调试数百种目标芯片,包括arm, mips, dsp, fpga, cpld等。支持多种调试接口,如cmsis-dap, jlink, stlink, usb-blaster等。

脚本介绍

以下是一些基于cmsis-dap接口的调试脚本,可以对目标芯片完成擦除、烧录、锁定等操作,当然您也可以自行修改脚本,以完成自己的定制需求。

使用说明

使用非常简单,无需安装任何额外软件,以及额外的配置,您只需将本仓库下载下来,双击其中脚本即可运行,实际使用会比图形界面操作更加高效,也更加强大

脚本说明

flash_dump.bat
dump出目标芯片中的flash,不同目标芯片由于flash空间不同,或许您需要手动编辑文件修改其中的flash空间大小


flash_write.bat
将当前目录下的flash_image.bin写入到目标芯片中,您可自行修改其中的路径及文件名


擦除

flash_erase.bat
擦除目标芯片flash


锁定

lock.bat
对目标芯片锁定,即增加读保护,加上读保护之后,无法从调试接口访问flash空间,若执行解锁操作,则芯片内部逻辑会自动擦除所有flash数据


解锁

unlock.bat
解锁目标芯片,会擦除所有flash数据


Attach

attach.bat
attach到目标芯片上,您可双击此脚本,观察输出,以确认仿真器和是否和目标板正确连接


支持平台

当前支持如下平台的操作

  • stm32f0x
  • stm32f1x
  • stm32f2x
  • stm32f4x
  • stm32l4x
    若您有需求,请在本仓库的issue中上报新平台,脚本会持续更新。

openocd-toolbox's People

Contributors

wuxx avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

openocd-toolbox's Issues

希望增加STM32L0X系列的支持

STM32L0X系列是应用广泛的低功耗stm32芯片,因芯片价格上涨,只有stm32l0x系列的价格处于目前较能让人接受的范围(10+元/片),因此希望增加对本系列芯片的脚本支持。

stm32l432

楼主,我想使用DAPlink给l432下载代码

RISC-V 追踪调试的支持

您好:
请问openocd如何支持risc-v的追踪调试呢?不知道您对这方面有木有研究,还请不吝赐教!

stm32l4 DAP link 高速版無法使用

Stm32l431 TYPE-C 迷你高速DAP 版無法使用, CMSIS-DAP版本可以.
相同板子 KEIL 可使用TYPE-C 迷你高速DAP 板.

TYPE-C 迷你高速DAP Log:
Open On-Chip Debugger 0.10.0 (2019-04-26) [https://github.com/sysprogs/openocd]
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
adapter speed: 500 kHz
adapter_nsrst_delay: 100
none separate
cortex_m reset_config sysresetreq
adapter speed: 10000 kHz
Info : Listening on port 6666 for tcl connections
Info : Listening on port 4444 for telnet connections
Info : CMSIS-DAP: SWD Supported
Info : CMSIS-DAP: JTAG Supported
Info : CMSIS-DAP: FW Version = 0254
Info : CMSIS-DAP: Serial# = 1101360250203120394e3352323036313831303197969903
Info : CMSIS-DAP: Interface Initialised (SWD)
Info : SWCLK/TCK = 1 SWDIO/TMS = 1 TDI = 1 TDO = 1 nTRST = 0 nRESET = 1
Info : CMSIS-DAP: Interface ready
Info : High speed (adapter_khz 10000) may be limited by adapter firmware.
Info : clock speed 10000 kHz

CMSIS-DAP版本 Log:
Open On-Chip Debugger 0.10.0 (2019-04-26) [https://github.com/sysprogs/openocd]
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
adapter speed: 500 kHz
adapter_nsrst_delay: 100
none separate
cortex_m reset_config sysresetreq
adapter speed: 10000 kHz
Info : Listening on port 6666 for tcl connections
Info : Listening on port 4444 for telnet connections
Info : CMSIS-DAP: SWD Supported
Info : CMSIS-DAP: JTAG Supported
Info : CMSIS-DAP: FW Version = 0254
Info : CMSIS-DAP: Serial# = 0700000105d6ff3237304d4143172961a5a5a5a597969908
Info : CMSIS-DAP: Interface Initialised (SWD)
Info : SWCLK/TCK = 1 SWDIO/TMS = 1 TDI = 1 TDO = 1 nTRST = 0 nRESET = 1
Info : CMSIS-DAP: Interface ready
Info : High speed (adapter_khz 10000) may be limited by adapter firmware.
Info : clock speed 10000 kHz
Info : SWD DPIDR 0x2ba01477
Info : stm32l4x.cpu: hardware has 6 breakpoints, 4 watchpoints
Info : stm32l4x.cpu: external reset detected
Info : Listening on port 3333 for gdb connections

nrf

nrf51822
nrf52832
nrf52840
can use pyocd-flashtool program,can add it?

risc-v

大神,能加risc-v的吗?例如开源的HiFive,兆易创新的GD系列。谢谢了

GD32F系列

什么时候支持GD32F30X,我的硬件的GD32F30X,使用的stm32f10x.cfg脚本做测试,发现write、read正常,但erase不太正常,现象是执行erase时提示成功了,但把falsh读出来时发现不全是0XFF。

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.