]> git.sur5r.net Git - openocd/commit
cfi intel: fixing faulty flash write error message
authorAlexander Kurz <akurz@blala.de>
Sat, 13 Feb 2016 14:11:59 +0000 (15:11 +0100)
committerAndreas Fritiofson <andreas.fritiofson@gmail.com>
Mon, 29 Feb 2016 19:08:45 +0000 (19:08 +0000)
commit144f96c35afbff6771481dbfd39e863ff1a63bd7
treefc21f51671222ef6a492e0f745f324b04737b272
parente0a28b290f77df9e9a7e9f80e006cc9e2202c89d
cfi intel: fixing faulty flash write error message

Writing to Intel CFI flash with unaligned tail bytes raised a false
error message although all data was programmed successfully. e.g.:
> flash write_image image 0x602e0000 bin
> Programming at 0x602e0000, count 0x00000002 bytes remaining
> couldn't write word at base 0x60000000, address 0x602e0000
> error writing to flash at address 0x60000000 at offset 0x002e0000
Root cause for this false error was a mixup of two result variables
introduced with ecc8041c.

Change-Id: Ib6b85293dbed946a36a307e5b198c47b901145bf
Signed-off-by: Alexander Kurz <akurz@blala.de>
Reviewed-on: http://openocd.zylin.com/3233
Tested-by: jenkins
Reviewed-by: Spencer Oliver <spen@spen-soft.co.uk>
src/flash/nor/cfi.c