Limited DMA clearing to STM32F4, removed fatal error for flash loading.
authorIan Griffiths <6thimage@gmail.com>
Thu, 21 Mar 2013 16:28:15 +0000 (16:28 +0000)
committerIan Griffiths <6thimage@gmail.com>
Fri, 22 Mar 2013 13:39:00 +0000 (13:39 +0000)
commit0b2c10568773f84e06e65258359653d85cb4754e
tree8cb12ed4774254fc7435d40d704c15259f6cad32
parent69fecdca633e72547e90245d327d5d92c0488be8
Limited DMA clearing to STM32F4, removed fatal error for flash loading.

Commit 0ed3907 added the clearing of DMA registers that was preventing
programming (see issue #74), however it uses hardcoded addresses of the
DMA registers on the STM32F4. This seems to prevent the flashing and
verification on STM32L1, as the registers only partly cover the range
zeroed. So the DMA clearing has been limited to the STM32F4
microcontroller.

Additionally, sometimes, typically directly after erases, a 'flash
loader run error' will occur that terminates the writing. This is not
necessary, as the writing is successfully performed by page writing
(line 1581 onwards of stlink-common.c), and so has been returned to a
error message (see issue #112). There is a comment on line 1574 (added by
Uwe Bonnes in commit 0164043f) that this may happen on blank devices,
and so the fatal error message is the incorrect response.
flash/main.c
src/stlink-common.c