I've upgraded yesterday to the latest Atmel Studio and both existing and new project fail to compile when the Delay routine (service) is added.
The reported error is:
Error recipe for target 'src/ASF/common/services/delay/sam/cycle_counter.o' failed Error 's' undeclared here (not in a function) \src\ASF\sam\utils\compiler.h 242
The definition with an error in compiler.h is
# define OPTIMIZE_HIGH __attribute__((optimize(s)))
and that is used in cycle_counter.c:
// Delay loop is put to SRAM so that FWS will not affect delay time OPTIMIZE_HIGH RAMFUNC
Not sure what is changed so that those files built in earlier version of Studio. Anyway, can anybody confirm this error?