cancel
Showing results for 
Search instead for 
Did you mean: 

EEPROM emulation example doesn't compile (AN4046)

Ben Freudberg
Associate II
Posted on October 31, 2017 at 21:03

I downloaded the example code for EEPROM emulation (

http://www.st.com/en/embedded-software/stsw-stm32112.html

 ) 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.

Thanks,

Ben

#eeprom-emulation-example
2 REPLIES 2
Andrew Neil
Chief II
Posted on October 31, 2017 at 21:38

Is that the only error you get - or are there other errors/warnings before it?

Always start by addressing the earliest error/warning first - because one problem will probably cause many subsequent problems

Posted on October 31, 2017 at 21:48

That is the first error. There are only 2 total. The second is 

Error[Pe065]: expected a ';' C:\Program Files (x86)\IAR Systems\Embedded Workbench 8.0\arm\CMSIS\Include\cmsis_compiler.h 78

It is the same line in the same file so I'm assuming fixing the first error would also fix this one.