Thu Nov 11 13:16:05 EST 2010

OpenOCD getting started

As I forget this every time:

1. start ocd, i.e. like in [1].

2. start gdb for arm and connect with the "target remote localhost 3333" connect.

3. initialize the arm chip, i.e. halt + init stack.

steps 2. and 3. are best bundled in a script such as [2]

cd ~/ecos/build/demo
/opt/xc/arm9/bin/arm-linux-gnu-gdb -x ~/ecos/bin/eCos.gdb demo

[1] http://zwizwa.be/darcs/pool/bin/ocd.SAM7-H256 
[2] http://zwizwa.be/darcs/ecos/bin/eCos.gdb