I've got a handful of PIC. 18f2620 and 18f4620, and both chips compile fine in MpLAB.
but when I got to crank the ICD2 on the Picdem2 board I see...
Connecting to MPLAB ICD 2
...Connected
Setting Vdd source to MPLAB ICD 2
Target Device PIC18F2620 found, revision = Rev 0x6
...Reading ICD Product ID
Running ICD Self Test
...Passed
MPLAB ICD 2 Ready
ICD0083: Debug: Unable to enter debug mode. Please double click this message for more information.
ICDWarn0015: Program memory has changed since last program operation? Continue with Debug operation?
ICD0200: Operation Aborted (Warning 14).
ICD0069: Debug: Unable to run target
MPLAB ICD 2 Ready
What exactly do I do to set the X'tll to either internal of 4 MHz to match the picdem 2? I would think that would be the place to start...
The ICD2 PICDEM + is common platform I would like to be able to use it.
Great project!
Thanks,
Randy
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Sorry for the late answer, but I have been taking a break from
FlashForth.
I had the same behaviour with my ICD2 clone. I dont know why the debug mode
does not work, maybe some config bit must be differently set. ?
ICD 2 works well for me just to program the chip from the
Programmer menu in MPLAB.
After that everything can be be done in Forth.
To use the external 4 MHz crystal you set
clock = d'4000000' and XT or HS oscillator in the config file of
your processor.
Also set baud=d'9600' because the PIC cannot handle 38400 baud
serial rate at the 4 MHZ clock. 19200 may also work.
Cheers
Mikael
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Folks,
I've got a handful of PIC. 18f2620 and 18f4620, and both chips compile fine in MpLAB.
but when I got to crank the ICD2 on the Picdem2 board I see...
Connecting to MPLAB ICD 2
...Connected
Setting Vdd source to MPLAB ICD 2
Target Device PIC18F2620 found, revision = Rev 0x6
...Reading ICD Product ID
Running ICD Self Test
...Passed
MPLAB ICD 2 Ready
ICD0083: Debug: Unable to enter debug mode. Please double click this message for more information.
ICDWarn0015: Program memory has changed since last program operation? Continue with Debug operation?
ICD0200: Operation Aborted (Warning 14).
ICD0069: Debug: Unable to run target
MPLAB ICD 2 Ready
What exactly do I do to set the X'tll to either internal of 4 MHz to match the picdem 2? I would think that would be the place to start...
The ICD2 PICDEM + is common platform I would like to be able to use it.
Great project!
Thanks,
Randy
Hi Randy,
Sorry for the late answer, but I have been taking a break from
FlashForth.
I had the same behaviour with my ICD2 clone. I dont know why the debug mode
does not work, maybe some config bit must be differently set. ?
ICD 2 works well for me just to program the chip from the
Programmer menu in MPLAB.
After that everything can be be done in Forth.
To use the external 4 MHz crystal you set
clock = d'4000000' and XT or HS oscillator in the config file of
your processor.
Also set baud=d'9600' because the PIC cannot handle 38400 baud
serial rate at the 4 MHZ clock. 19200 may also work.
Cheers
Mikael