本帖最后由 yhy08090 于 2019-4-2 16:24 编辑
本人用PIC16F18346 调试程序,PICkit 3进行debug,MPLAB X IDE V4.05 debug-->debug project, 报错提示:
The requested operation cannot continue with the following configuration bit setting(s):
Power-up Timer Enable bit = PWRT enabled
Would you like MPLAB to changer the config setting(s) and continue?
NOTE:This will change configuration memory for this session only.It will not change the configuration bit settings in your code
选择yes结果:
The target device is not ready for debugging. Please check your configuration bit settings and program the device before proceeding. The most common causes for this failure are oscillator and/or PGC/PGD settings.
选择no结果:
The requested operation cannot continue with the following configuration bit setting(s):
Power-up Timer Enable bit = PWRT enabled
Please fix the setting(s) and try the operation again.
Failed to program device
因此debug总是不能顺利进行。
1.此工程其他的同事PWRTE=ON可以debug!!!;
2.我的环境跟他们也没有相差:
MPLAB X IDE V4.05
XC8 V1.44
3.虽然PWRTE=OFF可以debug了,但是查了查资料,PWRTE=ON还是需要的!!为什么我的这么奇怪,会弹出这对话框?是哪里不对?寻求帮助!!
|