This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Flash Bank2 Pages Write / Erase Problem

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

Parents
  • ... 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

Reply
  • ... 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

Children