Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
What is the correct way to Upload sketches
#1
It's baffeling me how to upload sketches to the boards .

I am unable to upload sketches to boards unless I disconect DUE or MEGA from the custom boards.
Rob how do you power everything??
From whitch power jack??

Do I have to connect all 3 power jacks that are on the boards or only the two on the PowerBar??
Reply to top
#2
Hi sassod, that does seem to be a problem with the Mega, I experience the same thing. I have to unplug the mega and then upload to it. With the Due when you upload to it the first upload only clears the memory then the 2nd upload after a reset works. I press upload wait till it says "No due found" or whatever, then I press the reset button, hit upload again and it works. I would love to know why the mega needs to be unplugged, something is obviously being tied up when its plugged in. I don't know if its because I'm using Tx1 and Tx2.
Reply to top
#3
I figured out why there are programming issues, its because of the reset circuit on the boards. I have an I/O pin going to the reset pin which is controlled in the GUI on the Due anyways, not being used on the power bar. The reason its a problem is when programming with the IDE, it sends a command to the arduino which resets its so it can be programmed. Because the reset circuit is tied up the IDE is unable to reset the arduino and program it.

This has been corrected on the Power Bar board and will be sorted out on the Due shortly. Now you can leave the system running and program updates without disrupting anything. I'll send everyone instructions on how to fix it, its really easy.
Reply to top
#4
Happy to report the uploading problem on the Due has been solved.

You can now upload to the Mega 2560 and Due without disconnecting or removing them from the board. You can extend the programming port if you want so updating is easy and no opening boxes.
Reply to top
#5
I was sure I posted this image showing the trace that needs to be cut on the power bar board but obvious not so here it is.

[Image: Reset_Mod.png]
Reply to top
#6
Rob,
Do I need to cut that trace? I have not the same board, there is no SD card on mine.

I don't think so but i want to be sure....
Reply to top
#7
same board I have I cut the trace right on the end
Reply to top
#8
(12-03-2015, 01:32 PM)Dom59 Wrote: Rob,
Do I need to cut that trace? I have not the same board, there is no SD card on mine.

I don't think so but i want to be sure....

Hi Dom, yeah I believe you do unless you see a nick in it already, I did cut some before sending them out. Here's an image showing the trace on your board, anywhere along the red it good.

[Image: Reset_Mod2.png]
Reply to top
#9
I have done that. All seams good and display is running. But only if i power the Due AND the board. Connecting only the board, the display doesn't run. Is it correct?
I played 1 hour with display for watching all possibilities!... And it's really great! ? Now i have to check the connecting board.
Reply to top
#10
The DC jack on the display board is only an option, good if you want to disconnect the power bar but still power up the display. If you have the ethernet patch cable plugged in the display board and connector board the power goes through it and you only need to add the 12v DC to either the connector board or mega board. Not long ago I setup a bit of a testing station and went to use a 3' ethernet patch cable I had around that works good for my router and the cable tester says its ok but to my surprise it wouldn't power up the display. So the cable could be the reason, on my main controller I'm using 25' and it works good. I attached an image showing all the boards together for reference. 

[Image: CAM00173-Optimized.jpg]
Reply to top


Possibly Related Threads…
Thread Author Replies Views Last Post
  Issues loading sketches to Mega and DUE Benny314 9 11,021 02-14-2016, 03:59 AM
Last Post: Benny314

Forum Jump:

Current time: 04-28-2024, 05:50 PM