How to write flash

1. Open a console, start openocd:
openocd -f open-jtag.cfg -f lpc2148.cfg

2. Open a new console, start telnet:
telnet localhost 4444

3. Input the commands below in telnet
halt
flash write_image erase Tetris.hex ihex
resume 0
exit

4. Use [Ctrl-C] to stop openocd

5. Power off open-jtag & target board

remark:
if write bin/elf/s19(Motorola s19) file to flash then:
flash write_image erase Tetris.elf elf
flash write_image erase Tetris.bin 0 bin
flash write_image erase Tetris.s19 s19