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