diff --git a/src/flash/nor/stm32lx.c b/src/flash/nor/stm32lx.c index ca29e1c3b..3bc6eed97 100644 --- a/src/flash/nor/stm32lx.c +++ b/src/flash/nor/stm32lx.c @@ -409,6 +409,7 @@ static int stm32lx_write(struct flash_bank *bank, uint8_t *buffer, } bytes_written = 128 * halfpages_number; + address += bytes_written; retval = stm32lx_unlock_program_memory(bank); if (retval != ERROR_OK)