what is usage of 'mem' option in 'write_image'.

hello everyone.

I am using openocd 0.4.0.

I plan to use openocd for writing serial code(just like a mac on ethernet) in target flash.

I have success already, using write_image command with an binary or hex file containing a serial-code.

actually, I am interested in sub option ‘mem’ for ‘write_image’ in flash command.

but I can not find any examples using ‘mem’ option.

could you show me an examples?

or could you give me any idea about that?