Skip to content

Commit

Permalink
target/flashstub: fix variable initialization in stm32f1_flash_write_…
Browse files Browse the repository at this point in the history
…stub

Signed-off-by: Francois Berder <[email protected]>
  • Loading branch information
francois-berder authored and dragonmux committed Dec 18, 2023
1 parent 8eaaa63 commit 8c15dd4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/target/flashstub/lmi.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
void __attribute__((naked))
stm32f1_flash_write_stub(const uint32_t *const dest, const uint32_t *const src, const uint32_t size)
{
for (uint32_t i; i < (size / 4U); ++i) {
for (uint32_t i = 0; i < (size / 4U); ++i) {
LMI_FLASH_FMA = (uintptr_t)(dest + i);
LMI_FLASH_FMD = src[i];
LMI_FLASH_FMC = LMI_FLASH_FMC_WRKEY | LMI_FLASH_FMC_WRITE;
Expand Down

0 comments on commit 8c15dd4

Please sign in to comment.