OpenOCD
From Attie's Wiki
(Difference between revisions)
m (→Usage) |
m (→Usage) |
||
Line 44: | Line 44: | ||
| flash write_image erase <''image''> <''address''> || put <''image''> into flash at <''address''> | | flash write_image erase <''image''> <''address''> || put <''image''> into flash at <''address''> | ||
|} | |} | ||
+ | |||
+ | ===Flashing=== | ||
+ | You must <code>halt</code>, <code>flash</code> and <code>reset</code> | ||
==Errors== | ==Errors== |
Revision as of 17:29, 27 July 2012
Contents |
Download
From git: git://openocd.git.sourceforge.net/gitroot/openocd/openocd
Source: http://sourceforge.net/projects/openocd/files/openocd/
Build
Git
# checkout the latest release tag (it may have changed!) git co v0.5.0 # bootstrap ./bootstrap # configure ./configure --enable-maintainer-mode
Source Package
# configure ./configure
Build
make
Install
sudo make install
Usage
Note: When flashing an image, use the 5v power supply, as USB cannot provide enough current
halt | halt... |
reset | reset... |
exit | exit... |
flash write_image erase <image> <address> | put <image> into flash at <address> |
Flashing
You must halt
, flash
and reset
Errors
flash failed
auto erase enabled lm3s.cpu -- clearing lockup after double fault error -302 executing stellaris flash write algorithm flash writing failed with CRIS: 0x0 error writing to flash at address 0x00000000 at offset 0x00000000 in procedure 'flash'
This can occur due to under-current (powered by USB). Either try again, or power using a 5v supply.