Programming the SPI boot flash on a LPC-H3131 board

It appears OpenOCD, including the latest development version, does not have direct general support for writing a image to a SPI connected flash, in this case the SPI boot flash on the Olimex LPC-H3131 board.

My standard approach in this situation is to write a small burner, link it so that it runs in RAM on the target, attach the image to be burnt to the end of the burner binary and then transfer the whole thing into the target’s RAM space (in this case by using OpenOCD) using a script to automate the process.

Before I go to the effort of doing that, I just wanted to make sure that there wasn’t a easier approach I had missed due to someone else having already tackled this problem.

I’ve found NXP application note AN10811 which talks about using the SPI programmer in the lpc313x CDL library but it requires a Windows binary running as part of the process and I am on Linux. The multistage process in this application note and in the CDL library documentation is also tedious if you are doing this multiple times.

Does anyone have any other approaches I have not come across yet ?

Thanks for any ideas.