Page 1 of 1

Down loading programme to MEGA 2560

Posted: Wed Aug 08, 2018 12:34 pm
by Chris_MIRA
Having upgraded from FC7 to FC8, Im having problems down loading to the micro (Arduino MEGA 2560), no programmes sem to get passed the compile to hex stage, they all worked no problem in FC 7. The very simple light flash test programme is attached as is the error message generated when I try to compile / download to micro... Am I doing something stupid?

regards,
Chris

Re: Down loading programme to MEGA 2560

Posted: Wed Aug 08, 2018 6:06 pm
by mnf
Looks like the compilation is successful - but downloading to the Mega is not..

Check the USB port setting - Project Options - General Options. Check that this is correct for the Arduino Mega, and that the target is correct as Arduino Mega too.

Try rebooting PC (and Arduino) if all looks ok.

Having said which - pulled a Mega out and tried - and sure enough AVRDude is returning an error..... (and I get the same when I try FC7 too)

Martin

Re: Down loading programme to MEGA 2560

Posted: Wed Aug 08, 2018 6:34 pm
by katela
I can compile to HEX your Flowcode project with no errors.
Do you have the Arduino Licence installed?
Can you try to compile with another board like the UNO and see if the problem is not with your installation?

Re: Down loading programme to MEGA 2560

Posted: Wed Aug 08, 2018 7:43 pm
by medelec35
Difficult to tell without see all the the error message.
It would be better to either attach

Code: Select all

Flwochart Name.msg.txt
or copy and paste message rather than a screenshot of a partial message.
One thing to try is look at the comport in device manager.
Then make sure the comport in Build, Compiler options, programmer Tab parameters match the comport in device manager.
You can check if comport is closed by seeing if it can be accessed with a terminal program like Tera Term.
If you can't access comport even if its shown to exist then you can try rebooting PC.
You must make sure Teratem is disconnected from the comport before trying to program Arduino.

Re: Down loading programme to MEGA 2560

Posted: Wed Aug 08, 2018 8:50 pm
by mnf
It's definitely a config problem....

I can compile and upload to a Mega R3 but not an older Arduino Mega...

Looking at the upload commands there are some differences:
C:\Users\Martin\DOWNLO~1>"E:\Flowcode\Common\Compilers\avr\batchfiles\..\bin\avrdude.exe" -p m2560 -P com6 -b 115200 -c wiring -D -U flash:w:"Flowcode1.hex"
C:\Users\Martin\DOWNLO~1>"E:\Flowcode\Common\Compilers\avr\batchfiles\..\bin\oldavrdude\avrdude.exe" -p m2560 -P com5 -b 115200 -c stk500v2 -U flash:w:"Flowcode1.hex"
With the first line working for an Arduino Mega R3 and the second failing on an Arduino Mega (not R3 - mine actually a Sainsmart clone)

Both work from the Arduino IDE....

Martin

Re: Down loading programme to MEGA 2560

Posted: Thu Aug 09, 2018 7:35 am
by Chris_MIRA
Thanks for all your replies :D
I had checked the build setting and all looked okay.... Ill go-try with an MEGA R3 and see what happens!
Thanks again....
Chris

Re: Down loading programme to MEGA 2560

Posted: Thu Aug 09, 2018 11:00 am
by Benj
Hi Chris,

This is a known problem with the none R3 Mega 2560.

Please see here for a workaround.
viewtopic.php?f=71&t=19376&p=84737#p84737

Re: Down loading programme to MEGA 2560

Posted: Mon Aug 13, 2018 12:29 pm
by Chris_MIRA
Thanks Benj :D
Now I know, Ill just go-buy a R3 version!
Regards,
Chris