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
Ghost and internal Oscillator
- LeighM
- Matrix Staff
- Posts: 2178
- Joined: Tue Jan 17, 2012 10:07 am
- Has thanked: 481 times
- Been thanked: 699 times
- Contact:
Re: Ghost and internal Oscillator
Hi Dave,
What version of Flowcode are you using, and is it up to date?
What version of Flowcode are you using, and is it up to date?
- Benj
- Matrix Staff
- Posts: 15312
- Joined: Mon Oct 16, 2006 10:48 am
- Location: Matrix TS Ltd
- Has thanked: 4803 times
- Been thanked: 4314 times
- Contact:
Re: Ghost and internal Oscillator
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.
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.
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Re: Ghost and internal Oscillator
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
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