The target device is not ready for debugging. Please check your configuration bits

Thread Starter

Guinness1759

Joined Dec 10, 2010
64
#include <pic.h> //HI-TECH C header file

__CONFIG(WDTE_OFF & CPD_OFF & FOSC_ECM & LVP_OFF);
/* Watch Dog Off, Code Protection Off, */


//********************** CONSTANTS, VARIABLES ********************************
#define _XTAL_FREQ 400000 /*Define the Chrystal frequency for the
//Hi-TECH C __delay_ms() function in Hz used in the pause function below */


//********************** MAIN FUNCTION **************************************
int main()
{

// My code, it's blinking an LED
}

I've also tried setting the FOSC_XT instead, but that does not work. I have a 2 MHz crystal oscillator (ECS-20-20-1X) set between pins OSC1 and OSC2. I'm using a PIC16F1827.
 

spinnaker

Joined Oct 29, 2009
7,830
#include <pic.h> //HI-TECH C header file

__CONFIG(WDTE_OFF & CPD_OFF & FOSC_ECM & LVP_OFF);
/* Watch Dog Off, Code Protection Off, */


//********************** CONSTANTS, VARIABLES ********************************
#define _XTAL_FREQ 400000 /*Define the Chrystal frequency for the
//Hi-TECH C __delay_ms() function in Hz used in the pause function below */


//********************** MAIN FUNCTION **************************************
int main()
{

// My code, it's blinking an LED
}

I've also tried setting the FOSC_XT instead, but that does not work. I have a 2 MHz crystal oscillator (ECS-20-20-1X) set between pins OSC1 and OSC2. I'm using a PIC16F1827.
Assuming you want to debug:

You need to first compile with debug, then program using the Debug menu.

And this should be in the embedded forum.
 
Top