From: Greg Meiste Date: Mon, 19 Oct 2015 14:24:40 +0000 (-0500) Subject: Allow flashing of STM32L4 down to 1.71 V X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=433a0eb53aad10a00b4a1513099a1c54095a84f9;p=fw%2Fstlink Allow flashing of STM32L4 down to 1.71 V The STM32L4 specification specifies that VDD can be 1.71 - 3.6 V. Signed-off-by: Greg Meiste --- diff --git a/src/stlink-common.c b/src/stlink-common.c index cfb1fbb..4ad28ee 100644 --- 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 <= 2700) { + if (voltage < 1710) { printf("Target voltage (%d mV) too low for flash writes!\n", voltage); return -1; }