I was getting the "Error in erase operation" in the loop every time. why?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-11-27 5:03 AM
Why was I getting the "Error in erase operation" message in the loop function when I stored the interrupt-based count in the memory at frequent intervals or continuously given the interrupt at 50ms once?
I've provided the image below that shows a serial port error:
- Labels:
-
Flash
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-11-27 11:53 PM
Hello @AA.21​,
Which board are you using?
Can you measure the power supply of the board? measure the voltages at VDD, VDDA, and VCAP pins?
Are you using an external or internal Flash Erase?
Try updating the STLinkV2 firmware and make sure to use latest release of the tools.
Imen
Thanks
Imen
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-11-28 12:03 AM
Hi @Imen DAHMEN​
I didn't do any erase operation in that case. I have just stored the interrupt count in the flash memory.
I used TTL convertor for flashing the firmware in the stm32 controller.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-11-28 4:52 PM
Storing without an erase and doing it at 50 ms intervals... If you intend to just write a single memory location at such a rate, you will wear out the guaranteed FLASH erase-write cycles in 8 minutes. Read the datasheet and the reference manual to understand how the FLASH memory works!
