STM32F103VG Flash Memory Write failure
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-01-13 1:49 AM
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.
Solved! Go to Solution.
- Labels:
-
Flash
-
STM32F1 Series
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-01-13 3:58 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-01-13 3:58 AM
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.
