cancel
Showing results for 
Search instead for 
Did you mean: 

When my code erased the configuration page, and the other pages is also erased

cheney
Associate

I am using STM32F103C8T6.

1 ACCEPTED SOLUTION

Accepted Solutions
cheney
Associate

flashUnlock();

flashPageErase(0x0800FC00); // 0x0800FC00 is the last page of flash. After the erasing, page on 0x0800E800 is also erased

flashLock();

Futhermore, when I erase 0x8000DC00, 0x0800FC00 is also erased.

It seem's to be a malfunction of the chip.

After I run a CHIP ERASE using ST-LINK, then the problem disappear, the erasing runs normal.

View solution in original post

1 REPLY 1
cheney
Associate

flashUnlock();

flashPageErase(0x0800FC00); // 0x0800FC00 is the last page of flash. After the erasing, page on 0x0800E800 is also erased

flashLock();

Futhermore, when I erase 0x8000DC00, 0x0800FC00 is also erased.

It seem's to be a malfunction of the chip.

After I run a CHIP ERASE using ST-LINK, then the problem disappear, the erasing runs normal.