Flowkit 2 and Ghost EB006V)

Any bugs you encounter with Flowcode should be discussed here.
User avatar
p.erasmus
Posts: 434
http://meble-kuchenne.info.pl
Joined: Thu Dec 03, 2020 12:01 pm
Location: Russia / Россия
Has thanked: 104 times
Been thanked: 88 times

Flowkit 2 and Ghost EB006V)

Post 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 5004 times
Regards Peter - QME Electronics

LeighM
Valued Contributor
Posts: 401
Joined: Mon Dec 07, 2020 1:00 pm
Has thanked: 73 times
Been thanked: 218 times

Re: Flowkit 2 and Ghost EB006V)

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

User avatar
p.erasmus
Posts: 434
Joined: Thu Dec 03, 2020 12:01 pm
Location: Russia / Россия
Has thanked: 104 times
Been thanked: 88 times

Re: Flowkit 2 and Ghost EB006V)

Post 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
Regards Peter - QME Electronics

LeighM
Valued Contributor
Posts: 401
Joined: Mon Dec 07, 2020 1:00 pm
Has thanked: 73 times
Been thanked: 218 times

Re: Flowkit 2 and Ghost EB006V)

Post 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 :)

User avatar
p.erasmus
Posts: 434
Joined: Thu Dec 03, 2020 12:01 pm
Location: Russia / Россия
Has thanked: 104 times
Been thanked: 88 times

Re: Flowkit 2 and Ghost EB006V)

Post 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 4967 times
Regards Peter - QME Electronics

LeighM
Valued Contributor
Posts: 401
Joined: Mon Dec 07, 2020 1:00 pm
Has thanked: 73 times
Been thanked: 218 times

Re: Flowkit 2 and Ghost EB006V)

Post by LeighM »

Does the program run OK without Ghost?
e.g. add LED flash?

User avatar
p.erasmus
Posts: 434
Joined: Thu Dec 03, 2020 12:01 pm
Location: Russia / Россия
Has thanked: 104 times
Been thanked: 88 times

Re: Flowkit 2 and Ghost EB006V)

Post by p.erasmus »

Yes
The program runs perfect when compile to chip with out Ghost
Regards Peter - QME Electronics

LeighM
Valued Contributor
Posts: 401
Joined: Mon Dec 07, 2020 1:00 pm
Has thanked: 73 times
Been thanked: 218 times

Re: Flowkit 2 and Ghost EB006V)

Post by LeighM »

OK, thanks, and also, sorry, just to be clear ...
Does Ghost ICD work on the EB006 with PIC25K22/26K22 program, or not?

User avatar
p.erasmus
Posts: 434
Joined: Thu Dec 03, 2020 12:01 pm
Location: Russia / Россия
Has thanked: 104 times
Been thanked: 88 times

Re: Flowkit 2 and Ghost EB006V)

Post 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 4957 times
Regards Peter - QME Electronics

BenR
Matrix Staff
Posts: 1767
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 449 times
Been thanked: 609 times

Re: Flowkit 2 and Ghost EB006V)

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

Post Reply