用KIT3,调试烧写时提示:Programming...
The following memory regions failed to program correctly:
EEData Memory
Address: 0000000b Expected Value: 00000055 Received Value: 00000000
Programming failed;
是什么原因?
程序如下:
#include <pic.h>
#include <htc.h>
__EEPROM_DATA(0x00,0x01,0x02,0x03,0x04,0x05,0x06,0x07);
__EEPROM_DATA(0x08,0x09,0x0A,0x0B,0x0C,0x0D,0x0E,0x0F);
void main (void)
{
unsigned char data=0x0b;
unsigned char address = 0x0b;
data=eeprom_read(address);
eeprom_write(address,data);
while(1);
} |