Help need advice, flowcode V5 AVR

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 5.
To post in this forum you must have a registered copy of Flowcode 5 or higher.

Moderator: Benj

Post Reply
User avatar
rene
Posts: 56
Joined: Sun Sep 13, 2009 11:27 am
Location: Dordrecht - Nederland
Has thanked: 5 times
Been thanked: 2 times

Help need advice, flowcode V5 AVR

Post by rene »

Hello boys and girls ...

I want to do some programming with the Arduino UNO R3 !

Question:

What do I need to Program in that thing ? :?:

I have already :
Flowcode 5 avr downloaded (free) (I buy, if suitable)
Arduino Uno R3

Do I need more?
Will someone explain to my what to do?

thanks....

Rene

dazz
Posts: 1314
Joined: Sun Jan 15, 2012 3:15 pm
Has thanked: 474 times
Been thanked: 458 times

Re: Help need advice, flowcode V5 AVR

Post by dazz »

Hi Rene

You have all you need, if you post what issues you are having then we can get you up and running fairly quickly, as flowcode programs arduino directly

Regards
Dazz
To sign up to the V5 forum follow this link http://www.matrixmultimedia.com/forum_upgrades.php

dazz
Posts: 1314
Joined: Sun Jan 15, 2012 3:15 pm
Has thanked: 474 times
Been thanked: 458 times

Re: Help need advice, flowcode V5 AVR

Post by dazz »

Hi Rene
Attached is a simple first demo for onboard led flash

Regards
Dazz
Attachments
uno simple led on off demo.fcf_avr
(11.5 KiB) Downloaded 320 times
To sign up to the V5 forum follow this link http://www.matrixmultimedia.com/forum_upgrades.php

User avatar
rene
Posts: 56
Joined: Sun Sep 13, 2009 11:27 am
Location: Dordrecht - Nederland
Has thanked: 5 times
Been thanked: 2 times

Re: Help need advice, flowcode V5 AVR

Post by rene »

Hi Dazz ..

Thanks for your response.
I've tried it, but get the following messages.

If I opens your project file I get the message:

Unable to create microcontroller Arduino Uno R 3PDIP PWM as the definition fie Arduino Uno R 3PDPIP pwm.FCD is missing or corrupt [0x201]

Is this because i use the free version od fC5

When I click the okay button FC5-AVR starts up.
compile goes well. :D
Uploading to the Arduino does not .. :?

The message is:
Flowcode was unable to transfer the flow chart to the microcontroller. Check the programmer options and physical connections.

I use a basic USB cable to the Arduino UNO not more!

I do not know whtas wrong... Do you? :?:

dazz
Posts: 1314
Joined: Sun Jan 15, 2012 3:15 pm
Has thanked: 474 times
Been thanked: 458 times

Re: Help need advice, flowcode V5 AVR

Post by dazz »

Hi Rene

Open flowcode avr, what arduinos does it list when you create a new flowchart you should also be able to start flowcode then select file import and select the chart i sent you should then be able to select the chip(Cant remember which arduino models are included in the free version and it should load, let me know and i can try and figure something out

Can you also when flowcode opens, select build compiler options then export the fcs file to your desktop, open in notepad and save as a text file and attach it here i can then look at the programming set up

Regards
Dazz
To sign up to the V5 forum follow this link http://www.matrixmultimedia.com/forum_upgrades.php

dazz
Posts: 1314
Joined: Sun Jan 15, 2012 3:15 pm
Has thanked: 474 times
Been thanked: 458 times

Re: Help need advice, flowcode V5 AVR

Post by dazz »

Hi Rene

Download a small prog called XLoader here http://xloader.russemotto.com/
This soft allows hex files to be uploaded to the arduino (attached is the demo code in hex format, send it to the board and see if it works ok

Regards
Dazz
uno simple led on off demo.hex
(2.03 KiB) Downloaded 319 times
To sign up to the V5 forum follow this link http://www.matrixmultimedia.com/forum_upgrades.php

User avatar
rene
Posts: 56
Joined: Sun Sep 13, 2009 11:27 am
Location: Dordrecht - Nederland
Has thanked: 5 times
Been thanked: 2 times

Re: Help need advice, flowcode V5 AVR

Post by rene »

Hi ...

Thanks for your efforts so far. :D
The LED on the Uno flashes

It worked with the Xloader
It worked with the Arduino sketch tool 1.0.4

But not directly with flow code ... :evil:
Are you able to upload it directly from Flowcode?

If so what are your compiler options, location and parameters?

my settings as followed:
C: \ Program Files \ Flowcode (AVR) \ v5 \ Tools \ MX_bats \ avrc_arduino.bat
% a stk500 com3 115200 "% f.hex"

dazz
Posts: 1314
Joined: Sun Jan 15, 2012 3:15 pm
Has thanked: 474 times
Been thanked: 458 times

Re: Help need advice, flowcode V5 AVR

Post by dazz »

Hi
Cool so far, attached is an fcs file unzip it to your desktop, open flowcode select build then compiler options click import browse to the unzipped uno.fcs file and then open
this should give you a working uno entry click the save icon, double check the com port your arduino is using, if its not com3 then change the com3 to whatever it in in compiler options programmer parameters, click save again then try to program from flowcode
let us know if it works

Regards
Dazz
Arduino_Uno.zip
(369 Bytes) Downloaded 371 times
To sign up to the V5 forum follow this link http://www.matrixmultimedia.com/forum_upgrades.php

User avatar
rene
Posts: 56
Joined: Sun Sep 13, 2009 11:27 am
Location: Dordrecht - Nederland
Has thanked: 5 times
Been thanked: 2 times

Re: Help need advice, flowcode V5 AVR

Post by rene »

Too bad it still does not work ... :(

the "uno.fcs" file loaded and again this gave a new error ....

by location:
C: \ Program Files \ Flowcode (AVR) \ v5 \ Tools \ MX_bats \ avrc_arduinoA.bat

Do you use a different *. Bat file?
I see the capital A stand behind arduino? :?
But when I delete this , the avrdude comes with an error.

I do not get it ..windows 7 problem ?
I have now also received mail from other users, with similar problems.

Cheers...
Rene

dazz
Posts: 1314
Joined: Sun Jan 15, 2012 3:15 pm
Has thanked: 474 times
Been thanked: 458 times

Re: Help need advice, flowcode V5 AVR

Post by dazz »

Hi Rene
Can you post the msg.txt file that's generated when you compile as this will show the error and help to get you up and running also can you look into your C:\Program Files\Flowcode(AVR)\v5\Tools\AVRDUDEusb folder and tell me the dates of the avrdude.exe and the avrdude.conf files and also their sizes

Regards
Dazz
To sign up to the V5 forum follow this link http://www.matrixmultimedia.com/forum_upgrades.php

User avatar
rene
Posts: 56
Joined: Sun Sep 13, 2009 11:27 am
Location: Dordrecht - Nederland
Has thanked: 5 times
Been thanked: 2 times

Re: Help need advice, flowcode V5 AVR

Post by rene »

Hi ...
Here I am again ...
Sorry it took so long, but I just had other occupations.

The fact is that it still does not work with me.

The requested data:
  avrdude.exe 14-3-2009 --- 274 Kb
avrdude.conf 5-3-2009 ---- 471 Kb


cheers

Rene
Attachments
uno.msg.txt
msg file
(2.83 KiB) Downloaded 316 times

dazz
Posts: 1314
Joined: Sun Jan 15, 2012 3:15 pm
Has thanked: 474 times
Been thanked: 458 times

Re: Help need advice, flowcode V5 AVR

Post by dazz »

Hi Rene
Can you unzip the attachment then place the new files as below

In your flowcode C:\Program Files\Flowcode(AVR)\v5\Tools\AVRDUDEusb and copy the new files into the AVRDUDEusb folder avrdude exe and conf(rename the existing ones first)


in your flow code C:\Program Files (x86)\Flowcode(AVR)\v5\Tools\MX_bats place the attached avrc_arduinoA.bat file in there

hopefully it will work for you ,let us know if it works

Regards
Dazz
dude.zip
(537.6 KiB) Downloaded 307 times
To sign up to the V5 forum follow this link http://www.matrixmultimedia.com/forum_upgrades.php

User avatar
rene
Posts: 56
Joined: Sun Sep 13, 2009 11:27 am
Location: Dordrecht - Nederland
Has thanked: 5 times
Been thanked: 2 times

Re: Help need advice, flowcode V5 AVR

Post by rene »

To bad! :(
I did as you described ..same result.
Avrdude will not upload ...


Still sugestions left?

René
Attachments
uno.msg.txt
msg
(837 Bytes) Downloaded 234 times

dazz
Posts: 1314
Joined: Sun Jan 15, 2012 3:15 pm
Has thanked: 474 times
Been thanked: 458 times

Re: Help need advice, flowcode V5 AVR

Post by dazz »

Hi Rene
I've just had another look at your msg.txt file
can you open flowcode ,click build ,select compiler options, make sure that the option list entry says Arduino_Uno and not <current> , Then click the programer tab make sure that in the location it points to the new bat i uploaded ie
C:\Program Files\Flowcode(AVR)\v5\Tools\MX_bats\avrc_arduinoA.bat click the save icon at the top and try again. as the avrc_arduino.bat entry you have selected is out of date we use the avrc_arduinoA.bat instead. lastly make sure your uno is using com 3 if not change the parameter to the correct port re save and try again
Let us know if it works

Regards
Dazz
To sign up to the V5 forum follow this link http://www.matrixmultimedia.com/forum_upgrades.php

User avatar
rene
Posts: 56
Joined: Sun Sep 13, 2009 11:27 am
Location: Dordrecht - Nederland
Has thanked: 5 times
Been thanked: 2 times

Re: Help need advice, flowcode V5 AVR

Post by rene »

Hi,

There is some progress!! Not initially.
But I did install flowcode again, in a directory without spaces in the name.
I once had a similar mistake with flowcode for PICs, and you never know.

Avrdude continues .. but stop at some point yet again.
Only the RX led lights up on the Arduino board.
see msg file ....

Meanwhile I orderd at my local supplier the professional version...
Because I'm sure I want to continue with FC & AVR/Adruino's.
Hopefully we get it right on going ... although with Xloader it also succeed.

Rene
Attachments
Uno.msg.txt
Msg
(2.37 KiB) Downloaded 227 times

dazz
Posts: 1314
Joined: Sun Jan 15, 2012 3:15 pm
Has thanked: 474 times
Been thanked: 458 times

Re: Help need advice, flowcode V5 AVR

Post by dazz »

Hi Rene
Yup were getting somewhere as its timing out it is actually seeing the arduino
had this on a mega trying to remember the cure, but when it compiles to chip try pressing the arduino reset button a few times, it may then kick in and program,
other things to try is in the compiler options change stk500V2 to stk500, if that works cool, if not then make backups of your avrdude.exe . conf and avrc_arduinoA.bat, add the ones i zipped a few posts ago and try again
It will work , but sometimes the odd arduino board can take a while to get working (my mega was a nightmare but now works everytime)

Regards
Dazz
To sign up to the V5 forum follow this link http://www.matrixmultimedia.com/forum_upgrades.php

User avatar
rene
Posts: 56
Joined: Sun Sep 13, 2009 11:27 am
Location: Dordrecht - Nederland
Has thanked: 5 times
Been thanked: 2 times

Re: Help need advice, flowcode V5 AVR

Post by rene »

shame ...
It does not matter what I try, it really does not upload the hex file...

Strange that it does not work within "flowcode".
The Xloader program also uses avrdude, and that works well.

what could be wrong?

I would once again start all over again ....
now with more success

User avatar
rene
Posts: 56
Joined: Sun Sep 13, 2009 11:27 am
Location: Dordrecht - Nederland
Has thanked: 5 times
Been thanked: 2 times

Re: Help need advice, flowcode V5 AVR

Post by rene »

People .....

After some initial problems, I can announce now that uploading to the arduino_uno succeeded!!! :D

I want to thank everyone for their time and wise words.

For those who still have problems, see also
http://www.matrixmultimedia.com/support ... f=68&t=797


Thank you.

regards,

Rene

dazz
Posts: 1314
Joined: Sun Jan 15, 2012 3:15 pm
Has thanked: 474 times
Been thanked: 458 times

Re: Help need advice, flowcode V5 AVR

Post by dazz »

Hi Rene
Glad your up and running
thanks for letting us know
Regards
Dazz
To sign up to the V5 forum follow this link http://www.matrixmultimedia.com/forum_upgrades.php

Post Reply