EEPROM emulation example doesn't compile (AN4046)
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