I am currently trying to connect my flowcode v5.3 software package to my arduino mega 2560 R2 board. I have followed all the previous instructions provided on the forum by the admin team, however, the program successfully converts to hex but returns an error code of "1" when it attempts to launch the programmer to send to the arduino chip. I have correctly extracted my .exe files and .bat files to the correct filepaths stated on the forum but with no success.
I was hoping whether you guys had and ideas why we are getting this error code as this is extremely frustrating..... ?
We have this board here, but the R3 version, im not sure of the differences between the two, but i would imagine it should work the same way.
1st question: Can you program the device in the standard Arduino Dev environment
2nd question: CAn you confirm in device manager that the device is on the port you have entered into the compiler options
In reference to both your questions, the board has been working fine within the arduino environment and I have checked the COM port number is the same in compiler options. In addition I have also changed to another COM port number to see if it would work but with no success.
The link you have posted is the forum page we have followed by the letter and we have tried various options around it subsequently to ascertain whether the parameter set was perhaps incorrect given that the example was aimed at the arduino Uno. We have also tried the Mega on two different Pcs but unfortunately experienced the same problems. Hence the question posted on the forum as we are in need of urgent technical support to get this project up and running.
Could you go into your Arduino developer environment windows folder and navigate to the "hardware\arduino\" folder and look for a file called boards.txt and then attach it to a reply here please.
Hi
have you followed the link steve sent, ive attached a zip file, with a programmer file that works with my arduino mega, unzip it and import it into flowcode, using the import function on the programmer parameters page, you will need to make 1 change to the comport you are using. also are the following files in the c:\Program Files\Flowcode(AVR)\V5\Tools\AVRDUDEusb dated as follows
avrdude.conf 26/10/2010
avrdude.exe 26/10/2010
The boards file is exactly as expected which doesnt help, have you tried the files from dazz above?
The strange thing about this error is the lack of information, if the com port was wrong i would expect:
- avrdude.exe: ser_open(): can't open device "com3": The system cannot find the file specified.
If the stk500/stk500v2 was wrong i would expect something like:
- avrdude.exe: stk500_getsync(): not in sync: resp=0x00
- avrdude.exe: successfully opened stk500v2 device -- please use -c stk500v2
- avrdude.exe: AVR device initialized and ready to accept instructions
If the speed was wrong i would expect:
- avrdude.exe: stk500_2_ReceiveMessage(): timeout
Have you tried any other settings for other devices eg trying a 57600 speed, or using stk500 instead of stk500v2?
Edit: Be aware that when changing the usb speed it can lock out the device sometimes and it may require a computer reboot to get it working, i tested with the arduino environment again to see if it was working
There are many cases on the arduino forums of bootloaders for one device accidently being loaded into bootloaders of different devices, ie duemilanove bootloader being put into an Uno or other such oddities wondering if this is a similar case.
We are struggling with this problem now and wish to make use of the program. So far we have not been able to use it to any good effect and have spent over a week on this. I have tried everything I can read / think of over the weekend and now would appreciate a telephone call to assist. Please can you help in this matter ?
have you checked everything in my reply to you on the 2nd august, if so can you post screenshots of the results, i know its frustrating but posting screenshots etc speeds up tracking down issues, ( i dont work for matrix just a satisfied user),
please also post screenshots of all your compiler settings, your flowchart and the msg.txt file gernerated as then i can see if it uploads to my mega using your config settings etc
Have you tried running AVRDUDE directly and loading the HEX file generated by Flowcode? Flowcode seems to be creating the HEX file, so the issue seems to be with AVRDUDE itself, or the parameters you are supplying to it.
I've seen that AVRDUDE also has a "verbose" mode, which might shed some more light on why it is not communicating with your hardware.
I think i found the soluton.
I use the Arduno Dumeolove mega32p en this is how it works
all Arduino????.bat files work so I use te one who came with this version of
FC5.
Te parameters string in the topic must be:
zie attachment file,s.
-parameters progammer
-msg.txt
You have to adapt your com port and baudrate.!!!!!!!!!!!!! and release you USB en connect again.
Maby this is helpfull for others enthosiastic users (like me) of Flowcode.
Hi, the last post of this discussion string seems to indicate a fix to the problem of not being able to program an Arduino, although I have an Ethernet version my issue appears similar and like Hans have tried the previous postings. The last post that Hans left seems to infer that he resolved his issue, but I don't understand what he is saying, can you please explain.
(Sorry Hans I'm not trying to be funny)
Re: USB programming to Arduino Mega 2560 R2 Issue
by Hans Oostwal » Wed Aug 22, 2012 12:20 pm
I think i found the soluton.
I use the Arduno Dumeolove mega32p en this is how it works
all Arduino????.bat files work so I use te one who came with this version of
FC5.
Te parameters string in the topic must be:
zie attachment file,s.
-parameters progammer
-msg.txt
You have to adapt your com port and baudrate.!!!!!!!!!!!!! and release you USB en connect again.
Maby this is helpfull for others enthosiastic users (like me) of Flowcode.
Ok thank you,
Best regards,
Hans Oostwal
ATTACHMENTS
blink_B5_B1.msg.txt
(3.09 KiB) Downloaded 24 times
Hi David, yes and I've copied the library file into the specified directory.
I'll go thru the instructions again if you think it worthwhile, I suppose I was drawn to this post as I'm getting the exact same error message. But I don't understand what finally fixed the issue for Hans?
hi there,,i compiled my chip(robotic controller m1) using flowcode avr v5 but the thing is wen i compile there is an error like avrdude.exe ,,,i cant figure out wats the problem in my code ,,i am ataching c file ,,,plz see it