Chinaunix首页 | 论坛 | 博客
  • 博客访问: 144954
  • 博文数量: 35
  • 博客积分: 45
  • 博客等级: 民兵
  • 技术积分: 286
  • 用 户 组: 普通用户
  • 注册时间: 2011-09-14 18:49
个人简介

生命不止,奋斗不息。

文章分类

全部博文(35)

文章存档

2015年(1)

2014年(1)

2013年(32)

2011年(1)

我的朋友

分类: 嵌入式

2013-07-01 23:01:54

 

reset halt

 

halt

 

mdw 0 //读取地址0

 

mdw 4//读取地址4

 

OpenOCD commands

OpenFacts, the Open Source Knowledge Database

The Open On-Chip Debugger (OpenOCD) allows user interaction through a telnet interface (default: port 4444) and a GDB server (default: port 3333). The command line interpreter is available from both the telnet interface and a GDB session. To issue commands to the interpreter from within a GDB session, use the "monitor" command, e.g. use 'monitor poll' to issue the 'poll' command. All output is relayed through the GDB session.

This page is supposed to document the current state of the OpenOCD - i.e. the latest version available from SVN.

Daemon

sleep

Wait for n milliseconds before resuming. Useful in connection with script files ('script' command and 'target_script' configuration).

shutdown

Close the OpenOCD daemon, disconnecting all clients (GDB, Telnet).

debug_level [n]

Display or adjust debug level to n<0-3>

log_output

Redirect logging to (default: stderr)

script

Execute commands from

Target state handling

poll ['on'|'off']

Poll the target for its current state. If the target is in debug mode, architecture specific information about the current state are printed. An optional parameter allows continuous polling to be enabled and disabled.

halt

Send a halt request to the target. The debugger signals the debug request, and waits for the target to enter debug mode.

resume [address]

Resume the target at its current code position, or at an optional address.

step [address]

Single-step the target at its current code position, or at an optional address.

reset ['run'|'halt'|'init'|'run_and_halt'|'run_and_init']

Do a hard-reset. The optional parameter specifies what should happen after the reset. This optional parameter overwrites the setting specified in the configuration file, making the new behaviour the default for the 'reset' command.

  • run: Let the target run.
  • halt: Immediately halt the target (works only with certain configurations).
  • init: Immediately halt the target, and execute the reset script (works only with certain configurations)
  • run_and_halt: Let the target run for a certain amount of time, then request a halt.
  • run_and_init: Let the target run for a certain amount of time, then request a halt. Execute the reset script once the target entered debug mode.

Memory access commands

These commands allow accesses of a specific size to the memory system:

mdw [count]

display memory words

mdh [count]

display memory half-words

mdb [count]

display memory bytes

mww

write memory word

mwh

write memory half-word

mwb

write memory byte

load_image

['bin'|'ihex'|'elf']

Load image to target memory at

dump_image

>

Dump bytes of target memory starting at

to a (binary) .

load_binary

[DEPRECATED]

Load binary to target memory at

dump_binary

[DEPRECATED]

Dump bytes of target memory starting at

to a (binary) .

Flash commands

flash banks

List configured flash banks

flash info

Print info about flash bank

flash probe

Identify the flash, or validate the parameters of the configured flash. Operation depends on the flash type.

flash erase_check

Check erase state of sectors in flash bank . This is the only operation that updates the erase state information displayed by 'flash info'. That means you have to issue an 'erase_check' command after erasing or programming the device to get updated information.

flash protect_check

Check protection state of sectors in flash bank .

flash erase

Erase sectors at bank , starting at sector up to and including . Sector numbering starts at 0. Depending on the flash type, erasing might require the protection to be disabled first (e.g. Intel Advanced Bootblock flash using the CFI driver).

flash write [DEPRECATED]

Write the binary to flash bank , starting at bytes from the beginning of the bank. This command was replaced by the new command 'flash write_binary' using the same syntax.

flash write_binary

Write the binary to flash bank , starting at bytes from the beginning of the bank.

flash write_image [offset] [type]

Write the image to the current target's flash bank(s). A relocation [offset] can be specified and the file [type] can be specified explicitly as 'bin' (binary), 'ihex' (Intel hex), 'elf' (ELF file) or 's19' (Motorola s19).

flash protect <'on'|'off'>

Enable ('on') or disable ('off') protection of flash sectors to of flash bank .

flash auto_erase

Enable ('on') to erase flash banks prior to writing using the flash write_image command only. Default is ('off'), flash banks have to be erased using flash erase command.

 

 

阅读(1289) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~