Wed Oct 13 11:34:58 CEST 2010


I still don't have a proper way to reset the olimes ocd/at91
combination such that "load, continue" will work.  

What seems to work is to:
  - quit gdb, quit OpenOCD
  - unplug everything (programmer + board)
  - start OpenOCD, start gdb, reset, load

The following init sequence seems to work a bit:

       target remote :3333

       monitor poll

       monitor reset init
       monitor sleep 500

       ### needed for gdb 6.8 and higher
       set mem inaccessible-by-default off
       monitor flash probe 0

       monitor gdb_breakpoint_override hard
       monitor arm7_9 dcc_downloads enable
       # monitor arm7_9 fast_memory_access enable

Some remarks:

* The target needs to be halted before you can do anyting like
  uploading and setting breakpoints.

* Why doesn't the program entry point change after `load'?  On the
  Segger J-Link this seems to work just fine.

* Reset seems to work, but it doesn't halt the target.  Fix: use

// This is not initialized properly on Olimex board ??
// const char bytes[] = {1,2,3,1,2,3,1,2,3,1,2,3};