openocd/src
Tomas Vanek 4732471b2e flash/nor: at91samd protection bits write fix
Flash protection set on a device with MANW=1 was lost after reset.
Since #2903 the driver honored MANW bit and issued Write Page command just
for main flash write. This change adds similar technique to
samd_modify_user_row().

Minor code improvements:
samd_check_error() returns error code corresponding to error type
instead of bool.

samd_check_error() does not clear STATUS register if no error bit is set.

Eliminated double error check in call sequence samd_issue_nvmctrl_command()
folowed by samd_check_error().

Missing error code ERROR_FLASH_PROTECTED added to src/flash/common.h.

Change-Id: Icf59ab8803305d0cb3170c8a5089b8f9828b99f8
Signed-off-by: Tomas Vanek <vanekt@fbl.cz>
Reviewed-on: http://openocd.zylin.com/3550
Tested-by: jenkins
Reviewed-by: Andreas Fritiofson <andreas.fritiofson@gmail.com>
2016-12-08 12:19:19 +00:00
..
flash flash/nor: at91samd protection bits write fix 2016-12-08 12:19:19 +00:00
helper helper: Make unhexify() robust on invalid data 2016-10-17 09:28:05 +01:00
jtag Remove support for the GPL incompatible FTDI D2XX library 2016-11-06 09:47:12 +00:00
pld Make #include guard naming consistent 2016-05-24 22:30:55 +01:00
rtos helper: Make unhexify() robust on invalid data 2016-10-17 09:28:05 +01:00
server Perform small writes before sending OK. 2016-10-30 20:40:56 +00:00
svf Fix usage of timeval_ms() 2016-07-19 10:45:16 +01:00
target Replace "daemon" with "server" in user-visible strings 2016-11-05 17:44:01 +00:00
transport Make #include guard naming consistent 2016-05-24 22:30:55 +01:00
xsvf Make #include guard naming consistent 2016-05-24 22:30:55 +01:00
hello.c Remove FSF address from GPL notices 2016-05-24 22:30:01 +01:00
hello.h Make #include guard naming consistent 2016-05-24 22:30:55 +01:00
main.c Remove FSF address from GPL notices 2016-05-24 22:30:01 +01:00
Makefile.am configure.ac: Fix libjaylink integration 2016-11-05 20:38:51 +00:00
openocd.c Remove FSF address from GPL notices 2016-05-24 22:30:01 +01:00
openocd.h Make #include guard naming consistent 2016-05-24 22:30:55 +01:00