renguo
Newbie level 6
- Joined
- Oct 30, 2012
- Messages
- 14
- Helped
- 1
- Reputation
- 2
- Reaction score
- 1
- Trophy points
- 1,283
- Activity points
- 1,416
Hi,
It's my first time to use this debugging feature but I can't seem to make it work. I'm using MPLAB ICD 3 and 16-bit 28-pin demo baord (DM300027) for the dspic33fj16gs502. My configuration bits are as follows:
_FOSCSEL(FNOSC_FRC) // Select Internal FRC
_FOSC(FCKSM_CSECMD & OSCIOFNC_ON) // Select Oscillator I/O function
_FWDT(FWDTEN_OFF) // Disable the Watch Dog Timer
_FPOR(FPWRT_PWR128 ) // Select Power On timer and BOR
_FICD(ICS_PGD1 & JTAGEN_OFF) // Select Debug/Program Lines and JTAG OFF
any ideas? Could it be that my board is broken?
i can program the dspic just fine but when I enter the debugging mode, i get an error message:
Running... ICD3Err0040: The target device is not ready for debugging. Please check your configuration bit settings and program the device before proceeding.
if i program the device via the Programmer button, it programs just fine. But if I program using the Debugger button, it will say Programming/Verify complete but will display the ICD3Err0040 error message when I click Run
It's my first time to use this debugging feature but I can't seem to make it work. I'm using MPLAB ICD 3 and 16-bit 28-pin demo baord (DM300027) for the dspic33fj16gs502. My configuration bits are as follows:
_FOSCSEL(FNOSC_FRC) // Select Internal FRC
_FOSC(FCKSM_CSECMD & OSCIOFNC_ON) // Select Oscillator I/O function
_FWDT(FWDTEN_OFF) // Disable the Watch Dog Timer
_FPOR(FPWRT_PWR128 ) // Select Power On timer and BOR
_FICD(ICS_PGD1 & JTAGEN_OFF) // Select Debug/Program Lines and JTAG OFF
any ideas? Could it be that my board is broken?
i can program the dspic just fine but when I enter the debugging mode, i get an error message:
Running... ICD3Err0040: The target device is not ready for debugging. Please check your configuration bit settings and program the device before proceeding.
if i program the device via the Programmer button, it programs just fine. But if I program using the Debugger button, it will say Programming/Verify complete but will display the ICD3Err0040 error message when I click Run