openocd/src
Tomas Vanek 0e95629eb1 flash Kinetis: Implement flash protection setting
Kinetis family employs strange concept of Flash Configuration Field at
address 0x400 of program flash. Writing incorrect data to FCF may
permanently lock the device.

The change introduces 'kinetis fcf_source protection' mode. In this mode
write of flash image data to FCF is prevented. FCF data build from
protection (set by 'flash protect' command) are written instead.

FCF data are written also just after erase of relevant sector. It
protects device from locking security by reset or power cycle after erase.

prot_blocks array is used as protection blocks have bigger size than sectors.

Alignment and padding programming sections is rewritten to fix
writing with not section boundary aligned begin.

Change-Id: I9fc8bd37d6f627fb8ed7abb7f7560e78a740b195
Signed-off-by: Tomas Vanek <vanekt@fbl.cz>
Reviewed-on: http://openocd.zylin.com/3562
Reviewed-by: Andreas Fritiofson <andreas.fritiofson@gmail.com>
Tested-by: jenkins
2016-08-14 11:41:09 +01:00
..
flash flash Kinetis: Implement flash protection setting 2016-08-14 11:41:09 +01:00
helper Fix usage of timeval_ms() 2016-07-19 10:45:16 +01:00
jtag ftdi: Added a method to read the signal values 2016-08-14 02:08:13 +01:00
pld Make #include guard naming consistent 2016-05-24 22:30:55 +01:00
rtos rtos: remove display_str member 2016-08-14 01:38:12 +01:00
server gdb_server: support disabling server 2016-08-14 02:01:05 +01:00
svf Fix usage of timeval_ms() 2016-07-19 10:45:16 +01:00
target target: check late abort from target in async_algorithm 2016-08-13 09:39:01 +01: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 Makefile.am: link libusb-1.0 after libusb-0.1 to fix dependencies 2015-02-04 21:56:45 +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