Ghost and internal Oscillator

For E-blocks user to discuss using E-blocks and programming for them.

Moderators: Benj, Mods

Post Reply
dz28
Posts: 60
Joined: Thu Aug 04, 2016 3:30 pm
Has thanked: 7 times
Been thanked: 9 times
Contact:

Ghost and internal Oscillator

Post 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

User avatar
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

Post by LeighM »

Hi Dave,
What version of Flowcode are you using, and is it up to date?

dz28
Posts: 60
Joined: Thu Aug 04, 2016 3:30 pm
Has thanked: 7 times
Been thanked: 9 times
Contact:

Re: Ghost and internal Oscillator

Post by dz28 »

I am on Flowcode V7.1
Updated yesterday

Thanks

User avatar
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

Post 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.

dz28
Posts: 60
Joined: Thu Aug 04, 2016 3:30 pm
Has thanked: 7 times
Been thanked: 9 times
Contact:

Re: Ghost and internal Oscillator

Post 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

Post Reply