Page 1 of 1

How to config AVR V5 for UNO

Posted: Sun Nov 17, 2013 11:22 pm
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.

Re: How to config AVR V5 for UNO

Posted: Sun Nov 17, 2013 11:27 pm
by Tony007
Here are the compile Tabs.

Re: How to config AVR V5 for UNO

Posted: Mon Nov 18, 2013 8:59 am
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

Re: How to config AVR V5 for UNO

Posted: Tue Nov 19, 2013 2:12 am
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)???

Re: How to config AVR V5 for UNO

Posted: Tue Nov 19, 2013 9:35 am
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

Re: How to config AVR V5 for UNO

Posted: Tue Nov 19, 2013 8:19 pm
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

Re: How to config AVR V5 for UNO

Posted: Tue Nov 19, 2013 10:51 pm
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

Re: How to config AVR V5 for UNO

Posted: Wed Nov 20, 2013 12:33 am
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

Re: How to config AVR V5 for UNO

Posted: Wed Nov 20, 2013 12:38 am
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

Re: How to config AVR V5 for UNO

Posted: Wed Nov 20, 2013 12:46 am
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

Re: How to config AVR V5 for UNO

Posted: Wed Nov 20, 2013 1:06 am
by Tony007
Now I get this :(

Re: How to config AVR V5 for UNO

Posted: Wed Nov 20, 2013 1:28 am
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.

Re: How to config AVR V5 for UNO

Posted: Wed Nov 20, 2013 1:41 am
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