AnsweredAssumed Answered

STM32F0 BOOT

Question asked by beniamino.giorgio on Mar 14, 2013
                                   
           
Hi,

            I got the a problem regarding the BOOT process, I don't know how to move the nBOOT1 pin. 
            I have tried via software with the FLASH functions but with no good result. 
            Also I am working with the J-link no with the ST-Link.
            The code I have used is taken from the AN 3310 and ported for the F0 micro:

            FLASH_Unlock();
            FLASH_OB_Unlock();
            FLASH_ClearFlag(FLASH_FLAG_EOP|FLASH_FLAG_WRPERR |FLASH_FLAG_PGERR |FLASH_FLAG_WRPERR | FLASH_FLAG_BSY );
            FLASH_OB_UserConfig(OB_IWDG_SW, OB_STOP_NoRST, OB_STDBY_NoRST);
            if (FLASH_OB_BOOTConfig(OB_BOOT1_RESET) == FLASH_COMPLETE)
            {
     /* generate System Reset to load the new option byte values */
     FLASH_OB_Launch();
            }

            The function BOOTConfig returns FLASH Erorr, got form the previous operation.
            Thanks 
           

Outcomes