Ghost ICD comunication with ECIO ds PIC

For questions and comments on programming in general. And for any items that don't fit into the forums below.

Moderators: Benj, Mods

Post Reply
Chris_MIRA
Posts: 186
Joined: Wed Jan 23, 2013 3:43 pm
Has thanked: 2 times
Been thanked: 21 times
Contact:

Ghost ICD comunication with ECIO ds PIC

Post by Chris_MIRA »

Hi,
Im trying to use th e ghost / flowKit ICD with the dsPIC ECIO,
Im connected via the flowKit, I have re-compiled and flashed the ECIO while in Ghost (all the icons are green), but when I then try to step through or run the simulation I get the error message

"Did not read required Firmware ID size back.
First line is correct FW ID, second line was read from the chip: 8c3367c56da27f ff"

Ive tried this on a couple of identical devices, all read the same...

What am I doing wrong?

Regards,
Chris

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 ICD comunication with ECIO ds PIC

Post by Benj »

Hi Chris,

What pins are you using for the ICD. The defaults for the ECIO40P16 currently are B0 and B1. The override pins in the ICD menu seems to not be working which is strange and we will investigate this.

If your trying to debug using the USB cable then I can try to edit the default connections in the definition file to see if this helps things.

Chris_MIRA
Posts: 186
Joined: Wed Jan 23, 2013 3:43 pm
Has thanked: 2 times
Been thanked: 21 times
Contact:

Re: Ghost ICD comunication with ECIO ds PIC

Post by Chris_MIRA »

Hi,
Yes, Im using the USB. Connection are PC to FlowKit, then FlowKit to ECIO via USB. ECIO powered externally but no other connections...
Regards,
Chris

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 ICD comunication with ECIO ds PIC

Post by Benj »

Hi Chris,

Right this updated FCD might help to setup the default ICD pins correctly.
ECIO40P16.fcdx
(43.47 KiB) Downloaded 325 times
The file should be placed into the "C:\Program Files (x86)\Flowcode 6\FCD\PIC16" directory before restarting Flowcode and Recompiling the firmware to the chip.

Chris_MIRA
Posts: 186
Joined: Wed Jan 23, 2013 3:43 pm
Has thanked: 2 times
Been thanked: 21 times
Contact:

Re: Ghost ICD comunication with ECIO ds PIC

Post by Chris_MIRA »

Hi,
I have copied the file into the right folder. re-started FC6 and have then re-compiled and sent the programme using ghost (all icons green), the programme sends okay but I get the same error message when trying to de-bug...
See attached test programme...
Am I doing something wrong? In the folder where I placed the file, there were already 2 files with the same name, do I need to delete these?

Regards,
chris

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 ICD comunication with ECIO ds PIC

Post by Benj »

Hi Chris,
Am I doing something wrong? In the folder where I placed the file, there were already 2 files with the same name, do I need to delete these?
A folder will only allow one file of a specific name, are you renaming the files or overwriting the original? You need to have one file named "ECIO40P16.fcdx" in the directory, preferably the latest one from the post above.

Chris_MIRA
Posts: 186
Joined: Wed Jan 23, 2013 3:43 pm
Has thanked: 2 times
Been thanked: 21 times
Contact:

Re: Ghost ICD comunication with ECIO ds PIC

Post by Chris_MIRA »

Okay,
All older file versions deleted, new file downloaded and copied to the right folder, only one file now in that folder with the correct name.
FC6 re-started and the attached programme compiled and flashed to device using ghost and Flowkit (again all relevant icons showing green to indicate ghost active, the flowkit leds are slowly flashing...
The same error message as before is displayed if I either try to step through or RUN the programme!
Regards,
Chris
Attachments
DSPIC ECIO Zombie Cool-E.fcfx
(17.97 KiB) Downloaded 324 times

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 ICD comunication with ECIO ds PIC

Post by Benj »

Ok thanks Chris, I will look into this.

Chris_MIRA
Posts: 186
Joined: Wed Jan 23, 2013 3:43 pm
Has thanked: 2 times
Been thanked: 21 times
Contact:

Re: Ghost ICD comunication with ECIO ds PIC

Post by Chris_MIRA »

Hi,
Sorry to push, but is there any progress on this? It would be really, really useful to be able to use ghost ICD on the dsPIC ECIO at the moment....
Regards,
Chris

Chris_MIRA
Posts: 186
Joined: Wed Jan 23, 2013 3:43 pm
Has thanked: 2 times
Been thanked: 21 times
Contact:

Re: Ghost ICD comunication with ECIO ds PIC

Post by Chris_MIRA »

Hi
Any news or suggestions on this / how I can use ghost with dspic ECIO?
Regards,
Chris

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 ICD comunication with ECIO ds PIC

Post by Benj »

Hi Chris,

Right I have managed to get this working now.

You will need the updated FCD I sent you and also you need to copy the attached CAL file into your installation here "C:\Program Files (x86)\Flowcode 6\CAL\PIC16BIT".
PIC16BIT_CAL_ICD.c
(16.49 KiB) Downloaded 334 times
Fingers crossed this will also work for you.

You will probably need to manually press the reset button on the ECIO after sliding the switch on the FlowKit to the ICD position. You may also need to press reset when restarting the ICD comms.

Chris_MIRA
Posts: 186
Joined: Wed Jan 23, 2013 3:43 pm
Has thanked: 2 times
Been thanked: 21 times
Contact:

Re: Ghost ICD comunication with ECIO ds PIC

Post by Chris_MIRA »

Hi,
"Yes" :-)
Ghost now communicates with the device.
Thanks for the help :-)
Regards,
Chris

User avatar
Jay Dee
Posts: 398
Joined: Tue Aug 18, 2009 6:42 pm
Has thanked: 121 times
Been thanked: 154 times
Contact:

Re: Ghost ICD comunication with ECIO ds PIC

Post by Jay Dee »

Hi Guys,
can you confirm the pics your using for ICD on the dsPIC.. in various posts I think I've seen b0/b1 and e2/G?
I'm working on a generic dsPIC ECIO base board which supplied all the normal bits I need for typical projects so though it wise to put in a couple of pins for ICD (have a flowkit device)
regards, J.

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 ICD comunication with ECIO ds PIC

Post by Benj »

Hello,

The default ICD pins are defined in the FCD file XML.

This is the code for the ECIO40P16.

Code: Select all

<test >
    <icd >
        <clock port='6' pin='3' />
        <data port='4' pin='2' />
    </icd>
</test>
So it looks like

Clock : G3
Data : E2

Which are the USB pins so you should be able to connect a USB cable between the Flowkit and the ECIO.

If this doesn't work for some reason then you can alter the pins in the FCD using a text editor to try some more generic port pins.

Post Reply