hii i am very new to microcontroller programming i am presently working on PIC24F16KA102 with MPlab and C30 compiler.I wrote this code but this code is building successfully but when i connect to hardware its not communicating with board
#include "p24F16KA102.h"
int main(void)
{
TRISBbits.TRISB3 = 0;
LATBbits.LATB3 = 1;
while(1) {}
}
its showing error as
The target device is not ready for debugging.
Please check your configuration bit settings and program
the device before proceeding.
please can someone help me to get rid of this problem thankyou in advance.
using MPLAB if you click on Programmer then Select Programmer the PicKit 3 what does it say?
e.g. don't have a PicKit 3 here but my ICD3 talking to a PIC24FJ64GB002 says
Code:
MPLAB ICD 3 detected
Connecting to MPLAB ICD 3...
Firmware Suite Version...... 01.26.33
Firmware type......................dsPIC33F/24F/24H
MPLAB ICD 3 Connected.
Target Detected
Device ID Revision = 00000002