projects
/
fw
/
stlink
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e82def7
)
Display proper final page write count for 32L
author
Karl Palsson
<karlp@tweak.net.au>
Thu, 3 May 2012 22:05:32 +0000
(22:05 +0000)
committer
Karl Palsson
<karlp@tweak.net.au>
Thu, 21 Jun 2012 00:16:48 +0000
(
00:16
+0000)
src/stlink-common.c
patch
|
blob
|
history
diff --git
a/src/stlink-common.c
b/src/stlink-common.c
index 08bd0bb4d670b7ccd06b38b14270fc7f724bba24..a4e2a53700d422e64de52f1f1987e7ce65506961 100644
(file)
--- a/
src/stlink-common.c
+++ b/
src/stlink-common.c
@@
-1323,7
+1323,7
@@
int stm32l1_write_half_pages(stlink_t *sl, stm32_addr_t addr, uint8_t* base, uns
if (sl->verbose >= 1) {
/* show progress. writing procedure is slow
and previous errors are misleading */
- fprintf(stdout, "\r%3u/%u halfpages written", count, num_half_pages);
+ fprintf(stdout, "\r%3u/%u halfpages written", count
+ 1
, num_half_pages);
fflush(stdout);
}
while ((stlink_read_debug32(sl, STM32L_FLASH_SR) & (1 << 0)) != 0) {