楼上的先别拜啊!不是我的问题啊!刚才仔细看了发现TMP4的[i]没有,刚刚重新编辑了一下还是没有!只能怪21IC把它给HX了啊!够怪的!
后来试了这种方法也不行!
//标准块编程
//subpr_flash_enable_write();
FLASH_CR2 = 0x01;
FLASH_NCR2 = (unsigned char)~0x01;
//_asm("NOP");
tmp4[0] = 0;
tmp4[1] = 1;
tmp4[2] = 2;
tmp4[3] = 3;
tmp4[4] = 4;
tmp4[5] = 5;
tmp4[6] = 6;
tmp4[7] = 7;
tmp4[8] = 8;
tmp4[9] = 9;
tmp4[10] = 10;
tmp4[11] = 11;
tmp4[12] = 12;
tmp4[13] = 13;
tmp4[14] = 14;
tmp4[15] = 15;
tmp4[16] = 16;
tmp4[17] = 17;
tmp4[18] = 18;
tmp4[19] = 19;
tmp4[20] = 20;
tmp4[21] = 21;
tmp4[22] = 22;
tmp4[23] = 23;
tmp4[24] = 24;
tmp4[25] = 25;
tmp4[26] = 26;
tmp4[27] = 27;
tmp4[28] = 28;
tmp4[29] = 29;
tmp4[30] = 30;
tmp4[31] = 31;
tmp4[32] = 32;
tmp4[33] = 33;
tmp4[34] = 34;
tmp4[35] = 35;
tmp4[36] = 36;
tmp4[37] = 37;
tmp4[38] = 38;
tmp4[39] = 39;
tmp4[40] = 40;
tmp4[41] = 41;
tmp4[42] = 42;
tmp4[43] = 43;
tmp4[44] = 44;
tmp4[45] = 45;
tmp4[46] = 46;
tmp4[47] = 47;
tmp4[48] = 48;
tmp4[49] = 49;
tmp4[50] = 50;
tmp4[51] = 51;
tmp4[52] = 52;
tmp4[53] = 53;
tmp4[54] = 54;
tmp4[55] = 55;
tmp4[56] = 56;
tmp4[57] = 57;
tmp4[58] = 58;
tmp4[59] = 59;
tmp4[60] = 60;
tmp4[61] = 61;
tmp4[62] = 62;
tmp4[63] = 63;
_asm("NOP"); |