Down loading programme to MEGA 2560

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 8.

Moderator: Benj

Post Reply
Chris_MIRA
Posts: 186
Joined: Wed Jan 23, 2013 3:43 pm
Has thanked: 2 times
Been thanked: 21 times
Contact:

Down loading programme to MEGA 2560

Post 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
Attachments
FC8 test.fcfx
(7.54 KiB) Downloaded 219 times
FC8 problem screen shot.PNG
(139.94 KiB) Downloaded 1756 times

mnf
Valued Contributor
Valued Contributor
Posts: 1189
Joined: Wed May 31, 2017 11:57 am
Has thanked: 70 times
Been thanked: 439 times
Contact:

Re: Down loading programme to MEGA 2560

Post 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

User avatar
katela
Posts: 10
Joined: Thu Aug 15, 2013 8:04 am
Location: South Africa
Has thanked: 3 times
Been thanked: 1 time
Contact:

Re: Down loading programme to MEGA 2560

Post 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?
Free online Microcontroller Tutorials & Projects for beginners to advanced.
Website: https://www.studentcompanion.co.za/cate ... e-for-pic/
YouTube Tutorials: https://www.youtube.com/user/StudentCompanionSA

medelec35
Matrix Staff
Posts: 9520
Joined: Sat May 05, 2007 2:27 pm
Location: Northamptonshire, UK
Has thanked: 2585 times
Been thanked: 3815 times
Contact:

Re: Down loading programme to MEGA 2560

Post 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.
Martin

mnf
Valued Contributor
Valued Contributor
Posts: 1189
Joined: Wed May 31, 2017 11:57 am
Has thanked: 70 times
Been thanked: 439 times
Contact:

Re: Down loading programme to MEGA 2560

Post 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

Chris_MIRA
Posts: 186
Joined: Wed Jan 23, 2013 3:43 pm
Has thanked: 2 times
Been thanked: 21 times
Contact:

Re: Down loading programme to MEGA 2560

Post 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

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: Down loading programme to MEGA 2560

Post 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

Chris_MIRA
Posts: 186
Joined: Wed Jan 23, 2013 3:43 pm
Has thanked: 2 times
Been thanked: 21 times
Contact:

Re: Down loading programme to MEGA 2560

Post by Chris_MIRA »

Thanks Benj :D
Now I know, Ill just go-buy a R3 version!
Regards,
Chris

Post Reply