dreambig
Newbie level 3
Hey guys this has been a wrench to my gear and its driving me nuts, I ma trying to download an MPLAB v8.87 code into a PIC16f1823 using the Hi-Tech compiler and it connects but keeps bringing up this error message below, I have increased decresead disabled LVP tryed a different pic and it still does not download. On some ocassion sing a different code and a newly created MPLAB project it downloads but not for this code (all of a sudden) it did download porperly before now.
My Header:
#include <htc.h>
#include <math.h>
#include <stdio.h>
#define _XTAL_FREQ 4000000 /* Used a lower clock frequency. For PIC micros, the power */
/* consumption seems to rise as the square of the frequency. */
__CONFIG(0x2F5C & 0x06FF);
Error Meaasge:
PICkit 3 detected
Connecting to PICkit 3...
Firmware Suite Version...... 01.28.02
Firmware type......................Enhanced Midrange
PICkit 3 Connected.
PK3Err0045: You must connect to a target device to use PICkit
3.
Device ID Revision = 00000008
Programming...
The following memory regions failed to program correctly:
Configuration Memory
Address: 00008008 Expected Value: 00001000 Received Value: 00001010
Programming failed
Any helpful ideas would be much appreciated
My Header:
#include <htc.h>
#include <math.h>
#include <stdio.h>
#define _XTAL_FREQ 4000000 /* Used a lower clock frequency. For PIC micros, the power */
/* consumption seems to rise as the square of the frequency. */
__CONFIG(0x2F5C & 0x06FF);
Error Meaasge:
PICkit 3 detected
Connecting to PICkit 3...
Firmware Suite Version...... 01.28.02
Firmware type......................Enhanced Midrange
PICkit 3 Connected.
PK3Err0045: You must connect to a target device to use PICkit
3.
Device ID Revision = 00000008
Programming...
The following memory regions failed to program correctly:
Configuration Memory
Address: 00008008 Expected Value: 00001000 Received Value: 00001010
Programming failed
Any helpful ideas would be much appreciated