Can Flowkit V1 work with an Arduino Mega 2560 R3 ?

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 6.

Moderator: Benj

Post Reply
Ariko
Posts: 18
Joined: Tue Feb 23, 2016 10:28 pm
Has thanked: 6 times
Been thanked: 8 times

Can Flowkit V1 work with an Arduino Mega 2560 R3 ?

Post by Ariko »

Has anyone on the forum successfuly used the ICD of Flowkit V1 with an Arduino Mega 2560 R3 ?

I am able to communicate between PC and Flowkit, but I cannot initiate communication between the Flowkit and the Arduino. The error message suggests that there is no response from the Arduino.

I suspect the fault might be related to the interconnections. These I deduced from the datasheets of the Flowkit and an E-blocks AVR programmer as follows;

FlowKit Header Ardino Mega (Port B)
D11 ------------------> MOSI
GND ------------------> GND
ICDC -----------------> SCK
ICDC -----------------> MISO

If anyone can advise I would be most grateful.

Ariko

Ariko
Posts: 18
Joined: Tue Feb 23, 2016 10:28 pm
Has thanked: 6 times
Been thanked: 8 times

Re: Can Flowkit V1 work with an Arduino Mega 2560 R3 ?

Post by Ariko »

With reference to my previous post -

Have the Matrix staff (e.g Benj) any ideas on how to get Flowkit (V1) working with the Arduino Mega ?

Kind regards

Ariko

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: Can Flowkit V1 work with an Arduino Mega 2560 R3 ?

Post by Benj »

Hello Ariko,

Please can you post the program you are trying and I will investigate for you.

Should be fairly straightforward to get it running so my guess is that it's something specific to your program.

Also in your connections you list ICDC twice.

Ariko
Posts: 18
Joined: Tue Feb 23, 2016 10:28 pm
Has thanked: 6 times
Been thanked: 8 times

Re: Can Flowkit V1 work with an Arduino Mega 2560 R3 ?

Post by Ariko »

Ben,

Thank you for your reply.

I have gone back to basics by trying to get the Arduino and flowkit working together by using a 1s second ‘flasher’ program. (Posted below so you can see my configuration). However my problem remains, the flowkit is detected by Flowcode (V6.1.3.2) but I get the following error message;

“ICD has failed to communicate with the target.
Did not read required Firmware ID size back.
First line is the correct FW ID, second line was read from the chip:
81 a0 76 04 fb 9c be
ff

Ghost”

The connections between Arduino and flowkit are shown below;

Arduino Pin.........Function.......Flowkit ICD Header Pins
50---------------------- MISO------------ICDD
51---------------------- MOSI------------D11
52---------------------- SCK--------------ICDC
53---------------------- SS ---------------Not connected
GND-------------------GND---------------GND

Firstly, I would like to get the flowkit working with a simple program. I Regularly use Flowkit successfully with PICs but this is my first attempt with an Arduino.

Not wishing to complicate matters but on my actual project I have a SD card breakout PCB connected to the MISO, MOSI, SCK and SS pins. During my attempts at testing with the Flowkit the SD card breakout PCB was physically disconnected. But this raises the question of how to use the ICD to step through the complete hardware operation if this port is in use. I have one set of TX RX pins free but can other (spare) pins of the Arduino be assigned to the MISO, MOSI, SCK and SS functions?

Any help you can give me will be appreciated.

Kind Regards

Ariko
Attachments
1s Flash Test V1.fcfx
(4.29 KiB) Downloaded 300 times

Ariko
Posts: 18
Joined: Tue Feb 23, 2016 10:28 pm
Has thanked: 6 times
Been thanked: 8 times

Re: Can Flowkit V1 work with an Arduino Mega 2560 R3 ?[SOLVE

Post by Ariko »

After tinkering around with Flowkit and my Arduino Mega I have found a combination of connections and settings that work.

One observation I have made, is that Flowkit is not particularly tolerant to being disconnected and re-connected to the USB port. I found that if communication could not be established by simply re-enabling the debugger mode, then a Windows restart usually did the trick.

To assist anyone else thinking of using Flowkit V1 (Part HP 299) with Arduino I have attached some setup instructions which might help to save them a bit of time.

Ariko
Attachments
FlowKit and Arduino Mega Set Up Instructions.pdf
(668.64 KiB) Downloaded 299 times

Post Reply