]> git.sur5r.net Git - openocd/commit
AT91SAM4L: Fix bug when writing to flash at a non-zero offset, add debug
authorAngus Gratton <gus@projectgus.com>
Wed, 12 Feb 2014 11:32:47 +0000 (22:32 +1100)
committerPaul Fertser <fercerpav@gmail.com>
Sat, 29 Mar 2014 07:15:36 +0000 (07:15 +0000)
commit6f62e2428efe93735e828d60fec2cfc63c4ca753
tree08dfb9af903592802d768a4d2671bc0c9032a516
parentfb897cc805fe193a1ee2f295f284e421660793d5
AT91SAM4L: Fix bug when writing to flash at a non-zero offset, add debug
output for flash page writes

The offset wasn't being considered in the "full page" write codepath, so any
writes at an offset were actually written out starting from page 0.

Change-Id: I5e70a1f35f144b3edd1ce6d9df9af9b5da6cf194
Signed-off-by: Angus Gratton <gus@projectgus.com>
Reviewed-on: http://openocd.zylin.com/1965
Tested-by: jenkins
Reviewed-by: Andrey Yurovsky <yurovsky@gmail.com>
Reviewed-by: Paul Fertser <fercerpav@gmail.com>
src/flash/nor/at91sam4l.c