cancel
Showing results for 
Search instead for 
Did you mean: 

STM32 EEPROM Emulation SPL Library V3.1 Implementation

clarkratlas
Associate II

Hey all,

I'm attempting to implement the EEPROM emulation library into a pre-existing project with little success. I've added the eeprom.c file to the project as well as the header include to the main.c but even prior to implementing the code, attempting to compile/build throws an error that the "FLASH_Status" identifier is undefined. This variable is found inside the stm32f10x_flash header. I've added it from the StdPeriph file into the project but the compiler can't seem to locate it. 

This process if fairly new to be so I presume I'm missing some simple step to implement the library, any assistance would be appreciated. 

processor is an STM32F103
programming in IAR Embedded Workbench

10 REPLIES 10

Hello,

Searching in my archive I found the attached SPL library v3.1.0

FLASH_status is defined as enumeration in stm32f10x_flash.h:

 

typedef enum
{ 
  FLASH_BUSY = 1,
  FLASH_ERROR_PG,
  FLASH_ERROR_WRP,
  FLASH_COMPLETE,
  FLASH_TIMEOUT
}FLASH_Status;

 

 platform_config.h is part of the user application needs to be under Project\XXX\inc.

See for example this FW for Smartcard interface.

To give better visibility on the answered topics, please click on "Accept as Solution" on the reply which solved your issue or answered your question.