Fixed flash-write/verify error

(Closes #1303)
pull/1315/head
nightwalker-87 2023-06-09 14:51:57 +02:00
rodzic fc990648c4
commit efc5c3713d
2 zmienionych plików z 1 dodań i 4 usunięć

Wyświetl plik

@ -1439,9 +1439,6 @@ int32_t stlink_write_flash(stlink_t *sl, stm32_addr_t addr, uint8_t *base, uint3
(uint32_t)(sl->flash_pgsz));
return (-1);
}
if ((len % 16 <= 8) & (sl->flash_type == STM32_FLASH_TYPE_L5_U5)) {
len += 8;
}
// make sure we've loaded the context with the chip details
stlink_core_id(sl);

Wyświetl plik

@ -474,7 +474,7 @@ int32_t stm32l1_write_half_pages(stlink_t *sl, stm32_addr_t addr, uint8_t *base,
if (sl->verbose >= 1) {
// show progress; writing procedure is slow and previous errors are misleading
fprintf(stdout, "\r%3u/%u halfpages written", count + 1, num_half_pages);
fprintf(stdout, "\r%3u/%3u halfpages written", count + 1, num_half_pages);
fflush(stdout);
}