Allow flashing of STM32L4 down to 1.71 V
authorGreg Meiste <w30289@motorola.com>
Mon, 19 Oct 2015 14:24:40 +0000 (09:24 -0500)
committerGreg 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

index cfb1fbbaf3090ebc8535a585f03ee98a5d3f734b..4ad28eef376397014130be2ae0562be4cac9f342 100644 (file)
@@ -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 <= 2700) {
+            if (voltage < 1710) {
                 printf("Target voltage (%d mV) too low for flash writes!\n", voltage);
                 return -1;
             }