Code Monkey home page Code Monkey logo

openocd-toolbox's Introduction

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

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.