]> git.sur5r.net Git - openocd/commit
at91samd: Bail early if trying to erase protected sector
authorAndrey Smirnov <andrew.smirnov@gmail.com>
Sat, 8 Feb 2014 19:58:22 +0000 (11:58 -0800)
committerPaul Fertser <fercerpav@gmail.com>
Sat, 29 Mar 2014 08:44:08 +0000 (08:44 +0000)
commitc92a605e2622e5598c737a699d3164b9934bbd8c
tree5d3311cf09f031f4f84205c7cd4f80b4b22bbb36
parent34db6b9c0aaf048fe5ef81cccf2c645b9b4ac456
at91samd: Bail early if trying to erase protected sector

Bail early if trying to erase protected sector and also do not double-erase already
erased sectors.

Change-Id: Ic2d39af48c3b8e10e78d52dd978b9bc01f671c6a
Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com>
Reviewed-on: http://openocd.zylin.com/2026
Tested-by: jenkins
Reviewed-by: Paul Fertser <fercerpav@gmail.com>
src/flash/nor/at91samd.c