element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet & Tria Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      • Japan
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Vietnam
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Arduino
  • Products
  • More
Arduino
Arduino Forum Uploading
  • Blog
  • Forum
  • Documents
  • Quiz
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Arduino to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • Replies 13 replies
  • Subscribers 404 subscribers
  • Views 880 views
  • Users 0 members are here
Related

Uploading

Former Member
Former Member over 12 years ago

I have a Mega2560 and have intermittent problems uploading. It is more reliable with short files but as the length grows so it becomes more unreliable. At 25k more often than not it will freeze. If I 'tempt' it with a short file then there is a greater chance that it will accept a longer one. Any ideas?

  • Sign in to reply
  • Cancel
Parents
  • fidelsalinas
    fidelsalinas over 12 years ago

    If you are using windows 7 I would high recommend using Arduino ERW 1.0.3 IDE it comes with an installer that has all the newest drivers, the console also gives you more feed back so you know what AVRdude is up to. It's basicly the same as the original IDE but with a lot of helpful features added. Hope this solves your problem.

     

    Fidel Salinas.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Former Member
    Former Member over 12 years ago in reply to fidelsalinas

    Many thanks but no, if anything it's worse. I have just tried it around a dozen times and not one of them succeded. This is with a sketch around 17k. It says "Uploading", I get one flash from the RX LED and then it just sits there doing nothing. If I then unplug the connecting cable, reconnect it, and try again I get a message saying it can't find COM 3 but after several more attemps it finds it and I get back to where I started again. When it can't find COM 3, if I check in Control Panel it tells me that there is a MEGA2560 on COM 3 and that it is working correctly. I've gone back to my old version (Arduino 1.0.1) and that worked on the second attempt.

     

    John Waterman

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • fidelsalinas
    fidelsalinas over 12 years ago in reply to Former Member

    I'm happy you've got it working, If you run into any more trouble i'll be more then glad to lend a helping hand.

     

    Fidel Salinas.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Former Member
    Former Member over 12 years ago in reply to fidelsalinas

    I'm sorry Fidel but it seems that you misunderstood my response. Far from solving the problem, it made things worse. I cannot get the 1.0.3 IDE to upload AT ALL - not even a short sketch, and using the 1.0.1 IDE, uploading is still unreliable, although it does upload when it's in a good mood.

     

    HOWEVER I have now got my hands on another Mega2560 and that behaves much better, although the 1.0.3 IDE will still not upload to that one. It remains to be seen whether or not this new board will be completely reliable using the 1.0.1. IDE but it has been so far. It seems that this new board is not an R3 whereas the older one was. The new one chooses to work via COM 4 whereas the other (R3) chooses COM 3. I don't understand why or whether this is of any relevence.

     

    John Waterman

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • fidelsalinas
    fidelsalinas over 12 years ago in reply to Former Member

    Maybe changing the COM port might do the trick it also might be the computer, do you have a laptop or second machine you can try uploading the new firmware with? it's an easy way to see if you've got a bad board on your hands. I'm sure we can get to the bottom of this.

     

    Fidel Salinas

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Former Member
    Former Member over 12 years ago in reply to fidelsalinas

    Unfortunately I don't have another PC to try. I don't know if it is possible to change the COM port myself - the boards automatically choose it themselves and don't seem to allow me to. My latest 2560 board (not an R3, and working on COM 4) is working quite well but not 100%. I suppose so far its uploading failure rate is less than 10% - which I can live with. The other board (R3, and working on COM 3) - when "in a bad mood"  was virtually impossible to upload to, although on other occasions was not so bad.

     

    Every time when I check in Control Panel it tells me that I have a Mega2560 on whichever port and that it is working correctly. I have by the way, tried another connecting lead to the Arduino but that has made no difference.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • fidelsalinas
    fidelsalinas over 12 years ago in reply to Former Member

    In windows 7 Device Manager just double click on the mega on the "ports (com $ PTL" tree a proprerties window should pop up, click the "port setting" tab then hit advance and you should have the option to change the port.

     

    Fidel Salinas

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Former Member
    Former Member over 12 years ago in reply to fidelsalinas

    No luck I'm afraid. I changed to COM 7 - I also saw that it is possible to alter the speed, so I tried different speed settings but none of them were reliable. I could upload sometimes but couldn't manage more than about four consecutive uploads.

     

    I did however see something which I don't know whether or not is normal. No matter which COM port I chose I got a warning saying, "This port has been opened by another application" and asking me if I still wanted to go ahead. I find it hard to believe that this is true - can it be that it is a problem with my computer there somehow?

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • fidelsalinas
    fidelsalinas over 12 years ago in reply to Former Member

    That would cause big problems, you can't have two devices on one COM port without causing conflicts. try adding it to a bigger open com. see if that makes a diffrence. But if all your COM ports are taken up, I'd say it's an OS problem or you have a ton of stuff connected to your PC.

     

    Fidel.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Reply
  • fidelsalinas
    fidelsalinas over 12 years ago in reply to Former Member

    That would cause big problems, you can't have two devices on one COM port without causing conflicts. try adding it to a bigger open com. see if that makes a diffrence. But if all your COM ports are taken up, I'd say it's an OS problem or you have a ton of stuff connected to your PC.

     

    Fidel.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Children
  • mcb1
    mcb1 over 12 years ago in reply to fidelsalinas

    Caractacas

    I seem to recall an issue with some other programs polling the comm ports, and causing issues.

    I don't recall what it was, or how you stop it.

    This recall thing is hurting my brain, so I might be wrong....

     

    If you search on the Arduino.cc forums, you may find it.

    In theory if the Mega is plugged in, under control panel devices, it should show and be not indicating a problem.

     

    You could open Task manager and list the running processes (not applications).

    Kill each one that looks like it shouldn't be there (ipod, itunes, etc) to see what one resolves it, ... if any.

    They will start back up when you reboot, so save your work in case you need to reboot.

     

    Mark

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Former Member
    Former Member over 12 years ago in reply to mcb1

    The mystery deepens. If I reboot my computer then I find that I can change COM ports OK without being given a warning. If I then load the Arduino software and upload a sketch it's still OK. If I continue uploading until it fails, then if I go to change COM ports I now get the warning on (I believe) just about EVERY COM port. I am running no other software and have nothing else connected to my computer.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube