cancel
Showing results for 
Search instead for 
Did you mean: 

EE_Init() freeze my micro in STM32F469I-Disco

Mohamed eleuche
Associate II
Posted on June 30, 2017 at 11:11

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 */ 
}
 }

#stm32f469i-disco #stm32f469-discovery #eeprom
1 REPLY 1
Nesrine M_O
Lead II
Posted on June 30, 2017 at 11:36

Hi

eleuche.Mohamed

,

I recommend you to have a look to

http://www.st.com/content/ccc/resource/technical/document/application_note/ec/dd/8e/a8/39/49/4f/e5/DM00036pdf/files/DM00036pdf/jcr:content/translations/en.DM00036pdf

aboutEEPROM emulation in STM32F40x/STM32F41x microcontrollers.

I try the example under the STM32 cube firmware package and it is working as expected: STM32Cube_FW_F4_V1.0\Projects\STM32469I-Discovery\Applications\EEPROM\EEPROM_Emulation

so could you please first try the example without any modification,and tell us if you face the same issue?

-Nesrine-