edbg

所属分类:VHDL/FPGA/Verilog
开发工具:C
文件大小:64KB
下载次数:0
上传日期:2023-03-31 00:43:17
上 传 者sh-1993
说明:  通过CMSIS-DAP协议对MCU和FPGA进行编程的简单实用程序。适用于Linux、MAC和Windows。
(Simple utility for programming MCUs and FPGAs though CMSIS-DAP protocol. Works on Linux, MAC and Windows.)

文件列表:
90-atmel-edbg.rules (216, 2023-03-31)
LICENSE (1523, 2023-03-31)
Makefile (980, 2023-03-31)
dap.c (31529, 2023-03-31)
dap.h (3327, 2023-03-31)
dbg.h (948, 2023-03-31)
dbg_lin.c (5506, 2023-03-31)
dbg_mac.c (6841, 2023-03-31)
dbg_win.c (5532, 2023-03-31)
edbg.c (16617, 2023-03-31)
edbg.h (1062, 2023-03-31)
target.c (11248, 2023-03-31)
target.h (1491, 2023-03-31)
target_atmel_cm0p.c (15604, 2023-03-31)
target_atmel_cm3.c (11736, 2023-03-31)
target_atmel_cm4.c (13512, 2023-03-31)
target_atmel_cm4v2.c (11328, 2023-03-31)
target_atmel_cm7.c (10950, 2023-03-31)
target_gd_gd32f4xx.c (13033, 2023-03-31)
target_lattice_lcmxo2.c (13492, 2023-03-31)
target_mchp_cm23.c (12941, 2023-03-31)
target_nu_m480.c (12329, 2023-03-31)
target_rpi_rp2040.c (22153, 2023-03-31)
target_st_stm32g0.c (11372, 2023-03-31)
utils.c (7189, 2023-03-31)
utils.h (453, 2023-03-31)

[![Build Status](https://github.com/ataradov/edbg/actions/workflows/build.yml/badge.svg)](https://github.com/ataradov/edbg/actions) # CMSIS-DAP programmer This is a simple command line utility for programming ARM-based MCUs through CMSIS-DAP SWD interface. It works on Linux, Mac OS X and Windows. It was tested with Atmel mEDBG- and EDBG-based boards, Atmel-ICE, LPC-Link2, IBDAP and [Free-DAP](https://github.com/ataradov/free-dap)-based debuggers. ## Installation Binary releases can be downloaded from [here](https://taradov.com/bin/edbg/). Binary releases are not tested, they are a result of automated build process. Please report if you see any issues with them. If you want to build from the source code, simply run `make all` and you will get a small binary, called `edbg`. ## Dependencies The dependencies are minimal. In addition to normal development tools (GCC, make, etc) you will need: * Windows: none * Linux: libudev-dev * Mac OS X: none ## Usage ``` Usage: edbg [options] Options: -h, --help print this help message and exit -b, --verbose print verbose messages -x, --reset assert the reset pin before any other operation (duration in ms) -e, --erase perform a chip erase before programming -p, --program program the chip -v, --verify verify memory -k, --lock lock the chip (set security bit) -u, --unlock unlock the chip (forces chip erase in most cases) -r, --read read the whole content of the chip flash -f, --file binary file to be programmed or verified; also read output file name -t, --target specify a target type (use '-t list' for a list of supported target types) -l, --list list all available debuggers -s, --serial use a debugger with a specified serial number -c, --clock interface clock frequency in kHz (default 16000) -o, --offset offset for the operation -z, --size size for the operation -F, --fuse operations on the fuses (use '-F help' for details) ``` ``` Fuse operations format:
,, - any combination of 'r' (read), 'w' (write), 'v' (verify)
- index of the fuse section, may be omitted if device has only one section; use '-h -t ' for more information - index of the fuse, or a range of fuses (limits separated by ':') specify ':' to read all fuses specify '*' to read and write values from a file - fuses value or file name for write and verify operations immediate values must be 32 bits or less ``` Multiple operations may be specified in the same command. They must be separated with a ';'. Exact fuse bits locations and values are target-dependent. ## Examples ``` >edbg -b -t samd11 -pv -f build/Demo.bin Debugger: ATMEL EDBG CMSIS-DAP ATML2178031800000312 01.1A.00FB (S) Clock frequency: 16.0 MHz Target: SAM D11D14A (Rev B) Programming............................................... done. Verification............................................... done. ``` Fuse operations: ``` -F w,1,1 -- set fuse bit 1 -F w,8:7,0 -- clear fuse bits 8 and 7 -F v,31:0,0x12345678 -- verify that fuse bits 31-0 are equal to 0x12345678 -F wv,5,1 -- set and verify fuse bit 5 -F r1,:, -- read all fuses in a section 1 -F wv,*,fuses.bin -- write and verify all fuses from a file -F w0,1,1;w1,5,0 -- set fuse bit 1 in section 0 and clear fuse bit 5 in section 1 ```

近期下载者

相关文件


收藏者