]> git.sur5r.net Git - openocd/commit
flash: nor: mdr: do not mass erase when clearing INFO memory
authorPaul Fertser <fercerpav@gmail.com>
Thu, 3 Nov 2016 14:31:33 +0000 (17:31 +0300)
committerFreddie Chopin <freddie.chopin@gmail.com>
Fri, 4 Nov 2016 22:04:58 +0000 (22:04 +0000)
commit607edefb53ae5ca4120a7967c4cfed3184bb09d2
tree06a20b6420e709da4728521b9297e2d221a82e1c
parent09253ffd13038a465ab7a2ffc8475259d54da1e4
flash: nor: mdr: do not mass erase when clearing INFO memory

The MDR parts have two kinds of memory: main (regular memory-mapped
memory for code and data) and "info" (not memory-mapped). When OpenOCD
is requested to erase the info memory block, it should do just that,
instead of erasing everything including main memory.

Change-Id: I498142ca50d4a7b669b7776180b0dbcea63a5328
Reported-by: Eldar Khayrullin <eldar.khayrullin@mail.ru>
Signed-off-by: Paul Fertser <fercerpav@gmail.com>
Reviewed-on: http://openocd.zylin.com/3853
Tested-by: jenkins
Reviewed-by: Eldar Khayrullin <eldar.khayrullin@mail.ru>
Reviewed-by: Freddie Chopin <freddie.chopin@gmail.com>
src/flash/nor/mdr.c