2017-06-30 02:11 AM
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
2017-06-30 02:36 AM
Hi
eleuche.Mohamed
,I recommend you to have a look to
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-