Skip to main content
Gagan Gupta
Associate
January 13, 2020
Solved

STM32F103VG Flash Memory Write failure

  • January 13, 2020
  • 1 reply
  • 765 views

Hi, I am using STM32F103VG micro-controller. I am trying to program the memory in range 0x8014000 to 0x8090000. My code is able to program the memory till 0x807FFFF but after that it failed to write into memory i.e. problem happens after I start writing to bank2 once bank1 programming is finished.

I am using STM32 HAL library to write to memory.

If I directly write to bank2 memory area without first writing into bank1 memory area and then to bank2, it gets passed without any failure.

This topic has been closed for replies.
Best answer by Gagan Gupta

I found the mistake. I was erasing both bank together causing the issue. Once I erased the bank1, bank2 separately, problem is resolved.

Actually HAL library does not support bank1/bank2 to be erased together.

1 reply

Gagan Gupta
Gagan GuptaAuthorBest answer
Associate
January 13, 2020

I found the mistake. I was erasing both bank together causing the issue. Once I erased the bank1, bank2 separately, problem is resolved.

Actually HAL library does not support bank1/bank2 to be erased together.