]> git.sur5r.net Git - openocd/commit
target/image: allow for comments in IHEX files
authorFranck Jullien <franck.jullien@gmail.com>
Tue, 24 Dec 2013 09:07:14 +0000 (10:07 +0100)
committerSpencer Oliver <spen@spen-soft.co.uk>
Mon, 30 Dec 2013 15:49:15 +0000 (15:49 +0000)
commitf4947e8b88059f55445c4606578d7e195de6baed
tree7e095354e733230e0af5f20e644f0d861819cd7f
parent3d73c0bb5124e9a6f185f8a0ae08aad565acd028
target/image: allow for comments in IHEX files

This is not in the Intel hex file format specification but
some hex files may include comments (i.e. Altera USB-Blaster II
firmware) starting with '#'.

This patch makes image_ihex_buffer_complete_inner to skip
comment lines.

Change-Id: Id1f57d84d75da45e592f1c72b2b8c29193bc14e3
Signed-off-by: Franck Jullien <franck.jullien@gmail.com>
Reviewed-on: http://openocd.zylin.com/1842
Tested-by: jenkins
Reviewed-by: Andreas Fritiofson <andreas.fritiofson@gmail.com>
Reviewed-by: Spencer Oliver <spen@spen-soft.co.uk>
src/target/image.c