2011-04-15 05:36 AM
Flash Bank2 Pages Write / Erase Problem
2011-05-17 05:31 AM
FLASH_ClearFlag(FLASH_FLAG_BANK2_EOP | FLASH_FLAG_BANK2_PGERR | FLASH_FLAG_BANK2_WRPRTERR);
2011-05-17 05:31 AM
Cross post:
2011-05-17 05:31 AM
Thank you clive1
It works now I want to ask one more question I can erase pages using FLASH_ErasePage(addr); but it erase 2K but if i want to delete only one byte I mean how can i delete only 0x08002000 address content !!!2011-05-17 05:31 AM
''It works now''
So be sure to update your thread on the Keil forum!
Otherwise you will be wasting people's time over there responding to a question that's already been answered.
''if i want to delete only one byte I mean how can i delete only 0x08002000 address content !!!'' You can't! It is in the nature of all Flash devices - not just the STM32 - that you can only erase whole pages at a time.
Have you read the ST Application Note about using the Flash to simulate EEPROM...?
2011-05-17 05:31 AM
Hi!
it worked but it is with problem. When i try to erase, it returns FLASH_Timeout but it erase. FLASH_Status1 = FLASH_EraseAllBank2Pages(); Also when i write data it write but function return FLASH_TIMEOUT so it writes more slowly (these problems only for bank2) I didnt understand the problem !!!