Page 1 of 2

Flowkit 2 and Ghost EB006V)

Posted: Sun Jan 03, 2021 7:52 am
by p.erasmus
Hi Team.

I am having issue with Flowkit 2and EB006V9 to run ghost debugging on PIC25K22 and also 26K22 ,
is is possible to check if we have an issue on these
just a note I am using 16Mhz no PLL external Chrystal so the issue with internal OSC and Ghost it is not

Appreciate all help :)

The famous Ghost error popup :D I have compiled to chip 100 times :D


P1.jpg
P1.jpg (54.98 KiB) Viewed 5354 times

Re: Flowkit 2 and Ghost EB006V)

Posted: Mon Jan 04, 2021 8:37 am
by LeighM
Can I ask why you are using EB006 and Flowkit v2?
If both are plugged into USB/PC I think Flowcode is going to get confused as to which you are using for Ghost.
btw, Which version of Flowkit v2 are you using? HP6012 Arduino or HP6031 Stand alone?

Re: Flowkit 2 and Ghost EB006V)

Posted: Mon Jan 04, 2021 9:11 am
by p.erasmus
Can I ask why you are using EB006 and Flowkit v2?
Leigh,

I just tried both they are not connected at the same time,I first tried with a chip in EB006 and then I used the Flowkit 2
Well I think Ghost should work on the EB006 with out the Flowkit connected and also no PIckit Connected, Only EB006 and the Chip with onboard Ghost
I use flowkit2 for PIC stand alone . For me it is more important that it works with Flowkit as I am using Custom hardware ,as said I only used the EB006 to verify that it not me and Flowkit causing the problem :D

Re: Flowkit 2 and Ghost EB006V)

Posted: Mon Jan 04, 2021 10:45 am
by LeighM
OK, thanks.
That popup usually means that the Ghost and the target device are not in communication with each other.

So EB006 does not work, and Flowkit v2 does not work?
Did the same project ICD/Ghost work with V8? EB006 and Flowkit?
Have you got the ICD clock and data pin set in ICD settings?

Any further details to help narrow down the problem will be of help :)

Re: Flowkit 2 and Ghost EB006V)

Posted: Mon Jan 04, 2021 11:15 am
by p.erasmus
Hi Leigh,

Thanks for the directions,
I do not know if it will work in V8 as I only started the project last week and used V9, I will try V8 later today

The pins are set correctly RB7 Data and RB6 Clock

P1.jpg
P1.jpg (37.41 KiB) Viewed 5317 times

Re: Flowkit 2 and Ghost EB006V)

Posted: Mon Jan 04, 2021 11:28 am
by LeighM
Does the program run OK without Ghost?
e.g. add LED flash?

Re: Flowkit 2 and Ghost EB006V)

Posted: Mon Jan 04, 2021 1:58 pm
by p.erasmus
Yes
The program runs perfect when compile to chip with out Ghost

Re: Flowkit 2 and Ghost EB006V)

Posted: Mon Jan 04, 2021 2:21 pm
by LeighM
OK, thanks, and also, sorry, just to be clear ...
Does Ghost ICD work on the EB006 with PIC25K22/26K22 program, or not?

Re: Flowkit 2 and Ghost EB006V)

Posted: Mon Jan 04, 2021 2:28 pm
by p.erasmus
Hi Leigh,

Ghost does not work on either EB006 or Flowkit 2 on both 25K22 and 26K22

I just tried FC8 and also no success
Thanks Leigh
P1.jpg
P1.jpg (37.56 KiB) Viewed 5307 times

Re: Flowkit 2 and Ghost EB006V)

Posted: Mon Jan 11, 2021 10:53 am
by BenR
Hello Peter,

We know of an issue using the INTOSC when your not using the default speed. The INTOSC will usualy start at a low speed and then be brought up to a faster speed with the C icon call.

As the chip does not start off fast the ICD comms will fail and hence the program will not start.

Is it possible to use a crystal instead while you are debugging?

If not then it is possible to add the INTOSC code to the FCDX file to force the chip to be at speed before hitting the first Flowchart icon.

The FCDX file should be located here.
C:\ProgramData\MatrixTSL\FlowcodeV9\FCD\PIC

Right at the bottom of the file you will find this section of XML.

Code: Select all

    <main >
        <start code='void main()\n{\n' />
        <end code='\tmainendloop: goto mainendloop;\n}\n\n' />
        <init code='ANSELA = 0x00;\nANSELB = 0x00;\nANSELC = 0x00;\nANSELD = 0x00;\nANSELE = 0x00;\n' />
    </main>
Add your INTOSC code to the init code field with a \n at the end and hpefully this will make a difference.