How to config AVR V5 for UNO

Moderator: Benj

Post Reply
Tony007
Posts: 7
Joined: Sat Nov 16, 2013 3:08 am

How to config AVR V5 for UNO

Post by Tony007 »

Hi,
I downloaded AVR V5 Free last week to try out with my Arduino UNO. I have absolutely NO programming experience, but I understand how Flowcharts work. I put together a typical Blink Flowchart program (Which works), and then tried to upload to my UNO. This is when my problems started.

I assume that AVR V5 software has to be configured, but I’m so lost in how to do this, and cannot find any links on the web for this issue. If there is any one out there, that can help me, and don’t mind showing a total novice with No programming skills how to get his program to upload, and work, I would be very appreciative.

Uno is on COM 3

Thanks.
Attachments
upload code 1.jpg
upload code 1.jpg (71.82 KiB) Viewed 9542 times
Blink Flowchart.png
(225.02 KiB) Downloaded 5388 times

Tony007
Posts: 7
Joined: Sat Nov 16, 2013 3:08 am

Re: How to config AVR V5 for UNO

Post by Tony007 »

Here are the compile Tabs.
Attachments
Compile 3.png
(74.43 KiB) Downloaded 5385 times
Compile 2.png
(55.78 KiB) Downloaded 5385 times
Compile 1.png
(53.01 KiB) Downloaded 5385 times

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

Re: How to config AVR V5 for UNO

Post by dazz »

Hi Tony
Follow the link as theres some files need renewing http://www.matrixmultimedia.com/support ... f=68&t=797
once done unzip the file attached , open compiler options and import the unofcs file you may need to change the com port in the window from 3 to what port your arduino uses

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

Tony007
Posts: 7
Joined: Sat Nov 16, 2013 3:08 am

Re: How to config AVR V5 for UNO

Post by Tony007 »

Hi dazz.
First thank you for your fast response to my problem. I opened the link http://www.matrixmultimedia.com/support ... f=68&t=797 and replaced the files avrdude.exe, avrdude.conf, and avrc_arduinoA.bat. As per the instructions. Then I changed the location, and parameters code on the first three compiler option pages. Tried to upload, but did not work, so I followed the instructions, and installed the libusb0.dll file.

Retried and low, and behold it work, and flashed the LED on my breadboard for 1 sec on, then 1 sec off just as I wrote in Flowcode.

Now when I changed the flowchart project to set the LED to flash for 500 mil sec,s, and saved the file with a different name, I get this Hex file error. When I check were my saved project files are stored, I find that it does not have the .COF, .ELF .HEX .LST files like the other project.

One more thing is I could not use the files you downloaded in the uno.zip file. (it would not open)???
Attachments
Hex error.jpg
Hex error.jpg (60.57 KiB) Viewed 9522 times
C error.jpg
C error.jpg (57.46 KiB) Viewed 9522 times

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

Re: How to config AVR V5 for UNO

Post by dazz »

Hi Ken
Normally when you get the couldnt open com3 error, its because your arduino timed out a pc rebbot normally cure this, cany you post your flowchart that wont work, also if you get compiler errors, can you attach the generated msg.txt file as it's easier to see whats going wrong(hopefully)

heres the compiler settings that was in the zip fiest line is the location, second line are the parameters , when they are entered dont forget too click the disk icon, type Uno in the name box and save again

Compiler

C:\Program Files (x86)\Flowcode(AVR)\v5\Tools\MX_bats\avra.bat

%t "%D\%f.elf" "%D\%f.c" "%D\%f.lst"

Assembler/Linker

C:\Program Files (x86)\Flowcode(AVR)\v5\Tools\MX_bats\avrb.bat

"%D\%f.elf" "%D\%f.hex" "%D\%f.cof"

Programmer

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

%a stk500 com3 115200 "%f.hex"


Let us know how you get on

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

Tony007
Posts: 7
Joined: Sat Nov 16, 2013 3:08 am

Re: How to config AVR V5 for UNO

Post by Tony007 »

Hi Dazz.
I change the compiler settings to what you posted, and now I have a different error message. I think it’s to do with a “invalid baud rate specified”. I have sent you the Flowchart file, and the Msg.txt file.

Thanks Tony
Attachments
Flowcode1.msg.txt
(1.21 KiB) Downloaded 328 times
Flowcode1.fcf_avr
(6.5 KiB) Downloaded 320 times

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

Re: How to config AVR V5 for UNO

Post by dazz »

Hi ken
ive attached a rar unzip and import into compiler settings, this one should work and open
can you also try sending a program via arduino ide, just as a double check
Regards
Dazz

edit it might help if i actually attach the file doh doh :roll:
uno.rar
(289 Bytes) Downloaded 368 times
To sign up to the V5 forum follow this link http://www.matrixmultimedia.com/forum_upgrades.php

Tony007
Posts: 7
Joined: Sat Nov 16, 2013 3:08 am

Re: How to config AVR V5 for UNO

Post by Tony007 »

Hi.
Where and how do I install the uno.fcf file. Also not sure of how to send a program via Arduino ide. Can you explain please? Sorry not very programming savvy.

Thanks

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

Re: How to config AVR V5 for UNO

Post by dazz »

hi
sorry been calling yo ken, ok unrar the file then open flowcode select build then compiler options at the bottom of the options screen theres an import tab ,click it navigate to the fcs file then press ok once its imported click the save icon at the top of the options screen

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: How to config AVR V5 for UNO

Post by dazz »

Hi
I always ask people to send via the arduino ide juast as a second check to make sure the arduino works ok.
the arduino ide has some example programs to send, open the arduino ide, select file then examples and open the blinky,
to set up your arduino in the arduino ide, select tools(i think havent used it for a while) select boards the click on uno, select ports and select the com port you are using, finally select download , if alls well your arduino will start blinking

I havent got flowcode installed on this netbook im on so i will try your program out tomorrow when i get up,

let us know if the fcs i attached works

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

Tony007
Posts: 7
Joined: Sat Nov 16, 2013 3:08 am

Re: How to config AVR V5 for UNO

Post by Tony007 »

Now I get this :(
Attachments
path error.jpg
path error.jpg (27.41 KiB) Viewed 9493 times

Tony007
Posts: 7
Joined: Sat Nov 16, 2013 3:08 am

Re: How to config AVR V5 for UNO

Post by Tony007 »

Hi Dazz.
I loaded a copy of Flowcode V5 on a different computer, and changed the settings on the compiler as per your instructions of the other day, and guess what???

Its WORKING

I’m going to reload my work computer (which I have the problems on) and retry the setup. Thanks for your help, and I will let you know if this works.

Tony.

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

Re: How to config AVR V5 for UNO

Post by dazz »

Hi
Your works computer may be locked down , ideally on your works computer you will have full access to the flowcode folder and subdirectories


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

Post Reply