]> git.sur5r.net Git - openocd/commit
flash/nor: at91samd modified to use real erase sector size
authorTomas Vanek <vanekt@fbl.cz>
Thu, 14 Jul 2016 18:52:13 +0000 (20:52 +0200)
committerFreddie Chopin <freddie.chopin@gmail.com>
Sat, 17 Jun 2017 10:58:26 +0000 (11:58 +0100)
commit278f63174d6f09bd45edd4fcf8f2bf85b3ff9096
tree34b3342a06b0b763919d82dac977b4844fe4d7f5
parent24c302752ee54e39106ed914972d814314a009d1
flash/nor: at91samd modified to use real erase sector size

Before this change SAMD driver defined "sector" equal to a flash
protection block. Oversize sectors (16kB for the biggest flash size)
made problems for flashing firmware split to two or more parts.

Removed superfluous test of sector protection before erase.

Change-Id: I8e6a6bda6ccd91eda2df67ec48270c69faa1bdd1
Signed-off-by: Tomas Vanek <vanekt@fbl.cz>
Reviewed-on: http://openocd.zylin.com/3546
Tested-by: jenkins
Reviewed-by: Stian Skjelstad <stian@nixia.no>
Reviewed-by: Freddie Chopin <freddie.chopin@gmail.com>
src/flash/nor/at91samd.c