2024-04-30 02:02 PM - last edited on 2024-05-13 01:12 AM by SofLit
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
Solved! Go to Solution.
2024-05-01 01:45 PM - edited 2024-05-01 01:46 PM
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.