AnsweredAssumed Answered

EEPROM emulation example doesn't compile (AN4046)

Question asked by Ben Freudberg on Oct 31, 2017
Latest reply on Oct 31, 2017 by Ben Freudberg

I downloaded the example code for EEPROM emulation (STSW-STM32112 - EEPROM emulation in STM32F3xx microcontrollers (AN4046) - STMicroelectronics ) but I can't get it to compile. I'm using an STM32F301K6 processor and I'm working with IAR Embedded Workbench. I opened the EWARM project file from the download and tried to compile main.c. I get the following error:


Error[Pe077]: this declaration has no storage class or type specifier C:\Program Files (x86)\IAR Systems\Embedded Workbench 8.0\arm\CMSIS\Include\cmsis_compiler.h 78


Line 78 in cmsis_compiler.h reads:

__packed struct T_UINT32 { uint32_t v; };


I feel like there must be something wrong with how I have my environment set up but I'm pretty new to this and am lost. Any help is appreciated.