OpenOCD & STR710

I would like to use the arm-jtag to program the flash in the STR710. Apparently arm-jtag and openOCD support the STR710. I would like to have a simple script file or something and not a GUI so it could be used by production folks. Can anyone provide an example of how I could get started? Thanks.

add the following to the openocd.cfg file to setup the flash bank:

flash bank str7x 0x40000000 0x00040000 0 0 STR71x 0

then from a telnet interface or reset script perform the following:

erase sector 0 - 2 of bank 0

flash erase 0 0 2

program filename.bin to bank 0, offset 0

flash write 0 filename.bin 0x0

Regards

Spen