Debug
假如需要Debug的话,, compile in debug mode, and Program, 然后再Run
报错
The target device is not ready for debugging.Please check your configuration bit settings and programthe device before proceeding
解决方法:
Configure/Configuration Bits… select PGC2,对应于对应的ICSP 引脚对
然后编译后就可以Debug了
同样假如需要烧写程序,需要Compile in Release mode
设置宏 in maplab
#if defined(dsPIC33F)
#include “p33fxxxx.h”
#elif defined(PIC24H)
#include “p24hxxxx.h”
#endif