AnsweredAssumed Answered

EE_Init() freeze my micro in STM32F469I-Disco

Question asked by Mohamed eleuche on Jun 30, 2017
Latest reply on Jun 30, 2017 by Nesrine M

I used the sample project in the STM32Cube_FW_F4_V1 (...\Projects\STM32469I-Discovery\Applications\EEPROM\EEPROM_Emulation) When my code arrives at the EE_Init() it freezes!

main.c

int main(void) 
{  
uint8_t  lcd_status = LCD_OK;    
HAL_Init(); 
/* Configure the system clock to 180 MHz */ 
SystemClock_Config(); 
/* Unlock the Flash Program Erase controller */ 
HAL_FLASH_Unlock();
EE_Init();
/* Configure LED1, LED2, LED3 and LED4 */
BSP_LED_Init(LED1); BSP_LED_Init(LED2);
BSP_LED_Init(LED3); BSP_LED_Init(LED4);
/* Configure the User Button in GPIO Mode */
BSP_PB_Init(BUTTON_USER, BUTTON_MODE_GPIO);
/* Initialize DSI LCD */
lcd_status = BSP_LCD_Init(); 
BSP_TEST_APPLI_ASSERT(lcd_status != LCD_OK); 
BSP_LCD_LayerDefaultInit(0, LCD_FB_START_ADDRESS); 
BSP_LCD_SelectLayer(0); 
UARTx_Init();
GPIO_Init();
RTC_Init(); 
BSP_LED_Toggle(LED2);
calibration_page(); 
   /* EEPROM Init */   //     
if( EE_Init() != EE_OK)  
Error_Handler();  
while (1)   {     
   BSP_LED_Toggle(LED1);      
/* Insert delay 500 ms */    
   HAL_Delay(500);      
/* Toggle LED3 */  
}
}

Outcomes