]> git.sur5r.net Git - openocd/commit
flash Kinetis: refactoring ftfx commands and numerous minor changes
authorTomas Vanek <vanekt@fbl.cz>
Fri, 22 Jul 2016 08:33:42 +0000 (10:33 +0200)
committerAndreas Fritiofson <andreas.fritiofson@gmail.com>
Sun, 14 Aug 2016 08:21:35 +0000 (09:21 +0100)
commita46eb1f08276c3787085ee3d3f44940472502962
treeee3756c0ebce5bca0bb6170a435c1da6665245e4
parent77a1c01ccbb1150ffe749a7373cf6c4dc15ecad0
flash Kinetis: refactoring ftfx commands and numerous minor changes

Add kinetis_ftfx_decode_error() to show flash error type in human
readable message.

Add kinetis_ftfx_prepare() to prepare flash module just once in
command (not each time kinetis_ftfx_command() is called).

Change target_read/write_memory() to target_read/write_u8/32().

Make ftfx_fstat parameter of kinetis_ftfx_command() optional.

Longword flash write:
Fix huge memory leak after write of unaligned block.
Check flash address alignment properly.
Do not fill whole padding buffer but its end after original data.
Remove duplicite padding.

Change-Id: Ia5e312909f68d3cc724c8cbffe1cd903b9102124
Signed-off-by: Tomas Vanek <vanekt@fbl.cz>
Reviewed-on: http://openocd.zylin.com/3561
Tested-by: jenkins
Reviewed-by: Steven Stallion <stallion@squareup.com>
Reviewed-by: Andreas Fritiofson <andreas.fritiofson@gmail.com>
src/flash/nor/kinetis.c