Hi,
I recently bought a PIC24hj128gp502 and now I try to make simple program to get started with the device.
I program and power the device with PICKIT3 but it won't work. The device is detected but cannot be programmed, it always ends with "Failed to program device". This is the output:
"
Target detected
Device ID Revision = 3004
The following memory area(s) will be programmed:
program memory: start address = 0x0, end address = 0x3ff
configuration memory
Programming...
Failed to program device "
and this is my configs:
"
#pragma config ICS = PGD3
#pragma config FWDTEN = OFF
#pragma config FNOSC = FRC "
Before this device I used 8 bit PICS and now I'm using same circuit interface between the PICKIT3 and PIC, 4.7k resistor between Vdd- and MCLRpin, all Vss-pins connected and PGD3/C3.
I dont know what is wrong but all help from you is appreciated. Do I need to change or add configuration directives?
I recently bought a PIC24hj128gp502 and now I try to make simple program to get started with the device.
I program and power the device with PICKIT3 but it won't work. The device is detected but cannot be programmed, it always ends with "Failed to program device". This is the output:
"
Target detected
Device ID Revision = 3004
The following memory area(s) will be programmed:
program memory: start address = 0x0, end address = 0x3ff
configuration memory
Programming...
Failed to program device "
and this is my configs:
"
#pragma config ICS = PGD3
#pragma config FWDTEN = OFF
#pragma config FNOSC = FRC "
Before this device I used 8 bit PICS and now I'm using same circuit interface between the PICKIT3 and PIC, 4.7k resistor between Vdd- and MCLRpin, all Vss-pins connected and PGD3/C3.
I dont know what is wrong but all help from you is appreciated. Do I need to change or add configuration directives?