Page 1 of 1

Ghost and internal Oscillator

Posted: Tue Sep 20, 2016 10:56 pm
by dz28
I am having trouble getting GHOST to work on a PIC12F617 using the internal Oscillator.
When compiling in ICD mode I get errors like the following

128: #warning "Error: no definition for the ICD clock pin"
(162) #warning: "Error: no definition for the ICD clock pin" ^ (warning)
132: #warning "Error: no definition for the ICD data pin"
(162) #warning: "Error: no definition for the ICD data pin" ^ (warning)

199: ICD_CLK_PIN_TRIS |= (1 << 1);
^ (192) undefined identifier "ICD_CLK_PIN_TRIS"
200: ICD_DATA_PIN_TRIS &= ~(1 << 0);
^ (192) undefined identifier "ICD_DATA_PIN_TRIS"
201: ICD_DATA_PIN_PORT &= ~(1 << 0);

I am using the EB006 V9 board

Any help is appreciated

Thanks,
Dave

Re: Ghost and internal Oscillator

Posted: Wed Sep 21, 2016 4:37 pm
by LeighM
Hi Dave,
What version of Flowcode are you using, and is it up to date?

Re: Ghost and internal Oscillator

Posted: Wed Sep 21, 2016 5:21 pm
by dz28
I am on Flowcode V7.1
Updated yesterday

Thanks

Re: Ghost and internal Oscillator

Posted: Wed Sep 21, 2016 5:42 pm
by Benj
Hello,

I've just tried to replicate this here and the project is compiling ok for me. Please can you attach your Flowcode .fcfx project file and also the generated .c file too so we can investigate what's going wrong.

Re: Ghost and internal Oscillator

Posted: Wed Sep 21, 2016 8:30 pm
by dz28
Ben,

The project compiles to c and to chip fine.
The problem is when I compile to Chip while Ghost Debugging is enabled.

That being said I think I know the problem ...... Ghost Debugging most likely requires the use of the ICSP Data and clock lines as well as the MCLR
My project uses all three for I/O. The MCLR pin is defined as I/O and Ocillator is set to Internal.

I am guessing that this setup will not work with Ghost?
I think Microchip makes a debug header for the PIC12F617 that might work.

Thanks,
Dave