Hello,
I also use Olimex USB-JTAG and OpenOCD for debugging eCos applications
on LPC boards.
You first need to connect to the OpenOCD server via telnet and write the
program into flash (flash write 0 redboot.bin 0 or something similar).
Or you can write a make file that will do that job for you.
Then you can connect to OpenOCD server via GDB to debug your
application. IMPORTANT: If you debug flash applications you need to
enable hardware breakpoints. The best is to do this in an OpenOCD script.
Regards, Uwe
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss