Skip to main content
Ben Freudberg
Associate II
October 31, 2017
Question

EEPROM emulation example doesn't compile (AN4046)

  • October 31, 2017
  • 1 reply
  • 990 views
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
This topic has been closed for replies.

1 reply

Andrew Neil
Super User
October 31, 2017
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

A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.
Ben Freudberg
Associate II
October 31, 2017
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.