cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F0 BOOT

giorgio2
Associate II
Posted on March 14, 2013 at 16:09

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 

0 REPLIES 0