stm32f405RG eeprom emulation
Hello All,
I am trying to get eeprom emulation working on a stm32f405RG**.
I created a new simple project in STM32CubeIde using the eeprom code from the stm32f4cubeide packages. specifically I am using the code from STM32Cube_FW_F4_V1.25.0\Projects\STM32F401RE-Nucleo\Applications\EEPROM\EEPROM_Emulation
however I keep getting an error from the EE_Init() function below:
/* Reset of all peripherals, Initializes the Flash interface and the Systick. */
HAL_Init();
/* USER CODE BEGIN Init */
/* USER CODE END Init */
/* Configure the system clock */
SystemClock_Config();
/* USER CODE BEGIN SysInit */
/* Unlock the Flash Program Erase controller */
HAL_FLASH_Unlock();
/* USER CODE END SysInit */
/* Initialize all configured peripherals */
MX_GPIO_Init();
//MX_SPI2_Init();
//MX_TIM3_Init();
//MX_SPI3_Init();
//MX_TIM4_Init();
//MX_TIM5_Init();
//MX_TIM8_Init();
//MX_USART3_UART_Init();
//MX_TIM2_Init();
//MX_ADC1_Init();
//MX_USART1_UART_Init();
/* USER CODE BEGIN 2 */
/* EEPROM Init */
if( EE_Init() != EE_OK)
{
Error_Handler();
}I setup my virtual addresses the same as in the example:
uint16_t VirtAddVarTab[NB_OF_VAR] = {0x5555, 0x6666, 0x7777};
uint16_t VarDataTab[NB_OF_VAR] = {0, 0, 0};
uint16_t VarValue,VarDataTmp = 0;I suspect it could be a problem because the code was made for STM32F401RE. But I think it should be similar....
Any Ideas or help would be appreciated.
Thanks,
Trevor
