Hi!
I try to erase Bank2 using this code:
//Pages = 0x08080000;//bank2 start adress FLASH_UnlockBank2(); FLASH_ClearFlag(FLASH_FLAG_EOP | FLASH_FLAG_PGERR | FLASH_FLAG_WRPRTERR); FLASH_Status1 = FLASH_EraseAllBank2Pages(); // FLASH_Status1 = FLASH_ErasePage(Pages);
But FLASH_Status1 returns always FLASH_TIMEOUT
I can erase bank1 pages succesfully but i couldnt do it for bank2
(Also i cant write bank2 but i can write bank1 pages)
can you help me?
(I use stm lib V3.4.0)
Best Regards
... this is a 'general' function or is manufacturer dependent. Since you do not specify your chip, I have to answer "STM32f10x related"
however in STM32f10x_flash.c the header states "* @note This function can be used only for STM32F10x_XL density devices." could that be it?
Erik
my.st.com/.../Flat.aspx
http://bit.ly/ffbqTL
ADD code it works FLASH_ClearFlag(FLASH_FLAG_BANK2_EOP | FLASH_FLAG_BANK2_PGERR | FLASH_FLAG_BANK2_WRPRTERR);
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 !!!
Hi All,
Write/Erase operation to Flash Bank2 memory appears to be slow(The busy bit stays set for longer time).
Has any one faced this problem?
Is there any specfic settings for BANK2 flash thats need to be done?
Ajit