]> git.sur5r.net Git - openocd/commit
flash/nor/tcl: Respect flash bank boundary in write_bank
authorMarc Schink <openocd-dev@marcschink.de>
Fri, 4 Nov 2016 08:02:11 +0000 (09:02 +0100)
committerFreddie Chopin <freddie.chopin@gmail.com>
Sat, 17 Jun 2017 11:45:11 +0000 (12:45 +0100)
commit7112e5f57afffb3b387283f2f6048bf45f25c840
tree90f52cdca2a60ac554cc707b773916cd8bc96a9d
parentbdc71c5252995d55298ba7bba49adec074104619
flash/nor/tcl: Respect flash bank boundary in write_bank

Respect the flash bank boundary and write only to the remaining part of
the bank even if the file content is larger.

Change-Id: I8f4c1b161c103a77bdb30c6bf052293b5ed48c41
Signed-off-by: Marc Schink <openocd-dev@marcschink.de>
Reviewed-on: http://openocd.zylin.com/3861
Tested-by: jenkins
Reviewed-by: Paul Fertser <fercerpav@gmail.com>
Reviewed-by: Tomas Vanek <vanekt@fbl.cz>
src/flash/nor/tcl.c