Skip to main content
DIvan.1
Associate III
August 18, 2022
Question

Is it possible to erase Full chip?

  • August 18, 2022
  • 4 replies
  • 3899 views

Hello, I have a question:

  • Is it possible to erase full chip (for example... erase full chip after counter value get value 100)?

I'm using stm32f303cb.

Thank you for your time,

Domen

This topic has been closed for replies.

4 replies

waclawek.jan
Super User
August 18, 2022

What counter? Do you mean, can the chip erase itself? Have you read the FLASH chapter in manual?

0693W00000QNxUjQAL.pngJW

Peter BENSCH
Technical Moderator
August 18, 2022

I understand the question to mean that you want to delete the flash when a counter reaches a certain value, right?

This is possible by moving the erase routine to RAM and starting it there, but the power supply could fail during the erase process, which might not completely erase the flash.

Regards

/Peter

In order to give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
DIvan.1
DIvan.1Author
Associate III
August 18, 2022

Yes, you are right.

Okey, thank you for your advice. Can you direct me how to do this?

Best regard,

Domen

waclawek.jan
Super User
August 18, 2022

Read the FLASH chapter in RM I referenced to above, it contains all the information you need.

JW

DIvan.1
DIvan.1Author
Associate III
August 18, 2022

Thank you, I will check.

Best regard