本人用新唐ICP工具成功向NUC120 Data Flash地址 0x1FFFE下写入5后再到Keil中编写如下程序将此地址下的数据读回来,怎么一直为0啊.哪位高人写过此类代码的还请指点下。
UNLOCKREG();
FMC->ISPCON.ISPEN = 1;
FMC->ISPCMD.FCTRL = 0;
FMC->ISPCMD.FCEN = 0;
FMC->ISPCMD.FOEN = 0;
FMC->ISPADR = 0x1FFFE;
c = FMC->ISPDAT; //读数据
FMC->ISPCON.ISPEN = 0;
LOCKREG();
__nop(); |