projects
/
fw
/
stlink
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
37ecabf
)
Allow flashing of STM32L4 down to 1.71 V
author
Greg Meiste
<w30289@motorola.com>
Mon, 19 Oct 2015 14:24:40 +0000
(09:24 -0500)
committer
Greg Meiste
<w30289@motorola.com>
Fri, 29 Jan 2016 14:51:37 +0000
(08:51 -0600)
The STM32L4 specification specifies that VDD can be 1.71 - 3.6 V.
Signed-off-by: Greg Meiste <w30289@motorola.com>
src/stlink-common.c
patch
|
blob
|
history
diff --git
a/src/stlink-common.c
b/src/stlink-common.c
index cfb1fbbaf3090ebc8535a585f03ee98a5d3f734b..4ad28eef376397014130be2ae0562be4cac9f342 100644
(file)
--- a/
src/stlink-common.c
+++ b/
src/stlink-common.c
@@
-1818,7
+1818,7
@@
int stlink_write_flash(stlink_t *sl, stm32_addr_t addr, uint8_t* base, uint32_t
} else {
/* L4 does not have a byte-write mode */
int voltage = stlink_target_voltage(sl);
- if (voltage <
= 270
0) {
+ if (voltage <
171
0) {
printf("Target voltage (%d mV) too low for flash writes!\n", voltage);
return -1;
}