我在使用ISP_AP-Program-AP例程时,修改之前的源码如下:
Program_CONFIG(0x00,0xCF); //Program CONFIG0 = 0xCF;
Program_CONFIG(0x01,0x0F); //Program CONFIG1 = 0x0F;
Program_CONFIG(0x02,0xF8); //Program CONFIG2 = 0xF8;
Program_CONFIG(0x03,0x3F); //Program CONFIG3 = 0x3F;
Program_CONFIG(0x04,0xFF); //Program CONFIG4 = 0x00;
修改后如下:
Program_CONFIG(0x00,0x3F); //Program CONFIG0 = 0xCF;
Program_CONFIG(0x01,0x7F); //Program CONFIG1 = 0x0F;
Program_CONFIG(0x02,0xF8); //Program CONFIG2 = 0xF8;
Program_CONFIG(0x03,0x3F); //Program CONFIG3 = 0x3F;
Program_CONFIG(0x04,0xFF); //Program CONFIG4 = 0x00;
第一次可以烧写成功,第二次烧写就出现如下错误:
*** Error: The downloading image exceeds the range of the program memory!
有没有什么方法能够重新成功烧写? |