I open the ASF example project called AFEC automatic comparison example from ASF 3.31.0.
I rebuild the project, but I get 2 errors:
- Error
recipe for target 'src/ASF/common/services/delay/sam/cycle_counter.o' failed AFEC_EXAMPLE31
D:\Marien\Documents\Atmel Studio\AFEC_EXAMPLE31\AFEC_EXAMPLE31\Debug\Makefile
284
and
- Error
's' undeclared here (not in a function) AFEC_EXAMPLE31
D:\Marien\Documents\Atmel Studio\AFEC_EXAMPLE31\AFEC_EXAMPLE31\src\ASF\sam\utils\compiler.h
242
What can that be? I changed nothing, I only load a new example project and I try to compile that.
This is the peace of code in the compiler.h file:
Code: Select all
/* Define OPTIMIZE_HIGH attribute */
#if defined ( __CC_ARM ) /* Keil µVision 4 */
# define OPTIMIZE_HIGH _Pragma("O3")
#elif defined ( __ICCARM__ ) /* IAR Ewarm 5.41+ */
# define OPTIMIZE_HIGH _Pragma("optimize=high")
#elif defined ( __GNUC__ ) /* GCC CS3 2009q3-68 */
# define OPTIMIZE_HIGH __attribute__((optimize(s)))
#endif
Who can help me?
I use AS7.0.1006