问答

汇集网友智慧,解决技术难题

21ic问答首页 - mplab X IDE编译问题

IDE mplab 编译 he or

mplab X IDE编译问题

ccccccchihihi2026-03-01
不止一次出现这个问题,在使用程序1用mplab X IDE编译后出现该问题,于是更换程序2,却发现程序2没有出现该问题,程序正常烧录到单片机中,但是过了几天重新编译运行程序2,出现了相同的问题,请问该怎么解决呢?
Fatal error: 0xc04
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.

回答 +关注 1
447人浏览 1人回答问题 分享 举报
1 个回答
  • 从报错的最后一句来看:
    The most common causes for this failure are oscillator and/or PGC/PGD settings.
    配置位设置确认一下,第一个是内部/外部振荡器配置是否与实际相符;第二个是调试引脚的配置是否与实际相符,如果有多对调试引脚的话。

您需要登录后才可以回复 登录 | 注册