我用IARAVR软件写了一个小程序,MAKE有错误:
#include <iom128.h>
#include <iomacro.H>
void delay(void)
{unsigned int k;
for(k=0;k<5000;k++);
}
int main( void )
{DDRA=0XFF;
PORTA=0XFF;
while(1)
{PORTA^=0X01;
delay();
delay();
delay();
}
//return 0;
}
Fatal Error[e72]: Segment CODE must be defined in a segment definition option (-Z, -b or -P)
请问高手,怎么解决?
谢谢! |