Skip to content

Commit

Permalink
Merge pull request #366 from meisteg/l4_voltage
Browse files Browse the repository at this point in the history
Allow flashing of STM32L4 down to 1.71 V
  • Loading branch information
texane committed Jan 29, 2016
2 parents 37ecabf + 433a0eb commit 67b4543
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/stlink-common.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 67b4543

Please sign in to comment.