Files
sw_openocd/src/flash/nor
Jens Bauer 9d745a0690 stm32f2x: Fix byte order bug.
Do not use buf_set_u32 on integers; they're not buffers.
If using buf_set_u32 on integers, bytes will be exchanged on Big Endian targets.
In this particular case, FLASH_OPTCR was incorrectly written, causing it to often
contain one of these values: 0x00aaaae1, 0x00aaffef, 0x00ffabe1 or 0x00abffe1.
This write-protected the device before flash-programming, causing this command...
flash write_image erase unlock myfile.elf
... to fail, complaining about write-protection.
Repeating the above command would change the OPTCR register each time.
After applying this patch, the OPTCR remains "unchanged".

Change-Id: I73d510fcc2e81a01973ad5c6e1aa22715ebd2743
Signed-off-by: Jens Bauer <jens@gpio.dk>
Reviewed-on: http://openocd.zylin.com/2466
Tested-by: jenkins
Reviewed-by: Andreas Fritiofson <andreas.fritiofson@gmail.com>
2015-01-30 08:55:23 +00:00
..
2014-03-17 12:47:18 +00:00
2015-01-15 23:25:05 +00:00
2014-05-05 20:18:38 +00:00
2014-03-17 12:47:18 +00:00
2014-03-17 12:47:18 +00:00
2014-03-17 12:47:18 +00:00
2013-07-01 08:39:36 +00:00
2013-10-07 19:28:19 +00:00
2014-03-17 12:47:18 +00:00
2014-03-17 12:47:18 +00:00
2014-03-17 12:47:18 +00:00
2014-03-17 12:47:18 +00:00
2014-10-06 11:57:32 +00:00
2013-06-05 19:52:42 +00:00
2014-03-17 12:47:18 +00:00
2014-03-17 12:47:18 +00:00
2014-03-17 12:47:18 +00:00
2014-03-17 12:47:18 +00:00
2013-06-05 19:52:42 +00:00
2014-11-24 21:54:11 +00:00
2014-10-06 11:57:26 +00:00
2014-03-17 12:47:18 +00:00
2013-06-05 19:52:42 +00:00
2014-03-17 12:47:18 +00:00
2014-02-06 22:17:51 +00:00
2015-01-30 08:55:23 +00:00
2014-03-17 12:47:18 +00:00
2014-03-17 12:47:18 +00:00
2014-03-17 12:47:18 +00:00
2014-03-17 12:47:18 +00:00
2014-03-17 12:47:18 +00:00
2014-03-17 12:47:18 +00:00