2017-10-31 01:03 PM
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-example2017-10-31 01:38 PM
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
2017-10-31 02:48 PM
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.