Joe, Okay.... I tried your suggestion. The item that causes the programming failure is: intrc_osc_noclkout
Do you see anything wrong with this?
Richard
Joe, Okay.... I tried your suggestion. The item that causes the programming failure is: intrc_osc_noclkout
Do you see anything wrong with this?
Richard
Hello Dick,
I notice there is an added space in the lvp_off config in the second line (you have: lv p_off). Could this be the problem?
Andy
Hi Andy,
The extra space in lvp was added automatically by this forum's editor software. The space is not there in the actual program. Otherwise, the program would not compile. Thanks for the observation.
Richard
Update: I think the error message I'm getting is an anomaly of the PICkit firmware. Reason: The programmed 819's work correctly in my application even though the above programming error message appears at programming time.
I'll check with Microchip Support for their advice.
Richard
I still use the PICKIT1 for little things. If I use the PICKIT and import the hex the same happens, but the device works.
If I use MPLAB and the PICKIT everything works like it should.
Maybe the same with 2.
Dave
Always wear safety glasses while programming.
Dave, Thanks for your input. When I get a chance I'll try the MPLAB assembler, just out of curiosity. Microcode Studio has a box to check to use MPLAB.... I never used it before. Please help a little. I think the configuration lines have to be written differently...right? Anything else?
Richard
Well... I do not use MicroCode Studio very often. In fact the version I have is copyright 2001,2003. I could never get it to work correctly with my programmer (PICKIT1 when I started and soon after PICSTART PLUS). Would use MicroCode Studio set up to compile with with Micro Chip MPASM, then use MPLAB to burn the chip. A pain but...
Then MPLAB 7.00 came out and microEngineering Labs came out with this
http://melabs.com/support/mplab.htm
All was well now, PBP inside of MPLAB!!
As for the configuration, I make the changes I need in the PBP *.inc file for that chip. Most often for me on any given chip this will stay the same and if a change is needed for a certain project I will make a note of it.
In the PBP *.inc file you will find a line for the PM header and another line for the MPASM header.
Thats how I do it, but I am sure there are other ways. Here is an interesting thread. http://www.picbasic.co.uk/forum/show...ighlight=MPLAB
Let us know how it goes.
Dave
Always wear safety glasses while programming.
If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
.
Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
.
There simply is no "Happy Spam" If you do it you will disappear from this forum.
Programmer fixed with the following changes as suggested by Microchip support:
1. Upgrade PICkit 2 programmer software to v2.40
2. Under "Tools" set "Use Vpp First Program Entry"
3. Set Vdd PICkit2 "ON"
4. Set voltage to 5.0
Richard
I have the same prob.
But his solution dosn't work for me. heres my inc file for this device
NOLIST
ifdef PM_USED
LIST
"Error: PM does not support this device. Use MPASM."
NOLIST
else
LIST
LIST p = 18F4682, r = dec, w = -311, w = -230, f = inhx32
INCLUDE "P18F4682.INC" ; MPASM Header
__CONFIG _CONFIG1H, _OSC_ECIO_1H ;_OSC_XT_1H
__CONFIG _CONFIG2H, _WDT_ON_2H & _WDTPS_512_2H
__CONFIG _CONFIG3H, _MCLRE_ON_3H & _PBADEN_OFF_3H
__CONFIG _CONFIG4L, _XINST_OFF_4L & _LVP_OFF_4L
NOLIST
endif
LIST
EEPROM_START EQU 0F00000h
BLOCK_SIZE EQU 64
I even tried external +v5 with the pickit 2
I have updated both firmware and software. i just got this programmer a week ago and have only tried it with a few chips. it seemed to work fine with those, but with a 18f4682 its a no go. keeps saying verification of configuration bits failed.
any ideas ???
Bookmarks