|
430f149 flash 写入高字节时引发PUC信号
[复制链接]
大概写入不超过60个字节的数据
uint i;
uchar *Flash_IP = (uchar *)0x1000;
FCTL3 = FWKEY;
while(BUSY == 0);
FCTL1 = FWKEY + ERASE;
*Flash_IP = 0;
FCTL1 = FWKEY + WRT;
for(i = 0;i < 128;i ++)
{
*Flash_IP++ = R1data[i];
}
FCTL1 = FWKEY;
FCTL3 = FWKEY + LOCK; // 锁定
|
|