OpenOCDでFlashへ書き込む

OpenOCD 0.4.0でLPC1768のFlash ROMに書き込むことができました。これでいちいちkermitを終了してlpc21ispを使わなくても済む…のですが、

takemasa@euclid:~/workspace/sample$ telnet localhost 4444
Trying ::1...
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
Open On-Chip Debugger

flash 'lpc2000' found at 0x00000000

auto erase enabled
Padding image section 0 with 52 bytes
Verification will fail since checksum in image (0x00001cf5) to be written to flash is different from calculated vector checksum (0xefff59de).
To remove this warning modify build tools on developer PC to inject correct LPC vector checksum.
wrote 28672 bytes from file /home/takemasa/workspace/sample/asp in 6.285673s (4.455 kb/s)

JTAG tap: lpc1768.cpu tap/device found: 0x4ba00477 (mfg: 0x23b, part: 0xba00, ver: 0x4)
>

めんどくせー。どういう訳か書き込むオブジェクトは/から絶対パスを指定しなければうまくいきませんでした。ネットで検索してみると、OpenOCDのスクリプトgdbスクリプトを作っていらっしゃる方もいるようです。確かにその方が楽ですね。