cvavr编译正常,用avr studio向m16写入eeprom文件时显示如图片,请教问题出在哪里?谢谢
http://cache.amobbs.com/bbs_upload782111/files_10/ourdev_389394.jpg(原文件名:Image00001.jpg)
编译的文件:
#include <mega16.h>
#include <delay.h>
int i;
int eeprom *ptr_to_eeprom;
eeprom int alfa=1 ;
//eeprom unsigned char beta;
eeprom long array={1,2,3,4,5};
eeprom unsigned char string[]="Hello";
void main(void)
{
unsigned char position = 0; // position为控制位的位置
PORTA=0xFF; // PA口输出全1,LED全灭
DDRA=0xFF;
alfa=0x55;
ptr_to_eeprom=&alfa;
*ptr_to_eeprom=0x22;
i=alfa;
i=*ptr_to_eeprom;
while (1)
{
PORTA = ~(1<<position);
if (++position >= 8) position = 0;
delay_ms(1000);
}
} 现在在线的人较多,轻轻顶一下。希望得到答复。谢谢。
页:
[1]