Hello,
I am working with Atmel Studio 7.0.2389 and am hanging on a really stupid problem. The project is with an Xmega32e5 and I am using inline assembler in some functions. Out of some strange reason I get the "undefined reference" error on the NVM defines. I have the #include <avr/io.h> added. When I do a goto definition it finds the defines.
this is just examplary and also produces the error "undeines reference to 'NVM_CMD'":
#include <avr/io.h>
void write_flash(uint16_t adr, uint8_t *data)
{
_adr = adr;
_dadr = (uint16_t)&data;
asm volatile(
"sts NVM_CMD, r1 \n"
);
}
I could not figure out what the problem is.
Thanks