Page 1 of 1

Ghost ICD comunication with ECIO ds PIC

Posted: Wed Feb 25, 2015 10:39 am
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

Re: Ghost ICD comunication with ECIO ds PIC

Posted: Wed Feb 25, 2015 11:09 am
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.

Re: Ghost ICD comunication with ECIO ds PIC

Posted: Wed Feb 25, 2015 11:25 am
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

Re: Ghost ICD comunication with ECIO ds PIC

Posted: Wed Feb 25, 2015 12:51 pm
by Benj
Hi Chris,

Right this updated FCD might help to setup the default ICD pins correctly.
ECIO40P16.fcdx
(43.47 KiB) Downloaded 331 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.

Re: Ghost ICD comunication with ECIO ds PIC

Posted: Thu Feb 26, 2015 10:37 am
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

Re: Ghost ICD comunication with ECIO ds PIC

Posted: Thu Feb 26, 2015 12:28 pm
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.

Re: Ghost ICD comunication with ECIO ds PIC

Posted: Thu Feb 26, 2015 2:45 pm
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

Re: Ghost ICD comunication with ECIO ds PIC

Posted: Thu Feb 26, 2015 3:11 pm
by Benj
Ok thanks Chris, I will look into this.

Re: Ghost ICD comunication with ECIO ds PIC

Posted: Mon Mar 02, 2015 4:48 pm
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

Re: Ghost ICD comunication with ECIO ds PIC

Posted: Tue Mar 03, 2015 3:23 pm
by Chris_MIRA
Hi
Any news or suggestions on this / how I can use ghost with dspic ECIO?
Regards,
Chris

Re: Ghost ICD comunication with ECIO ds PIC

Posted: Tue Mar 10, 2015 12:40 pm
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 342 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.

Re: Ghost ICD comunication with ECIO ds PIC

Posted: Wed Mar 11, 2015 9:23 am
by Chris_MIRA
Hi,
"Yes" :-)
Ghost now communicates with the device.
Thanks for the help :-)
Regards,
Chris

Re: Ghost ICD comunication with ECIO ds PIC

Posted: Fri Oct 23, 2015 6:14 pm
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.

Re: Ghost ICD comunication with ECIO ds PIC

Posted: Mon Oct 26, 2015 3:11 pm
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.