Go Down

Topic: Can you develop code for 2 DUE's on one Macbook? (Read 667 times) previous topic - next topic

userjm4a

I want to develop test code for 2 Arduino Due's hooked each up to a USB hub which is hooked up to an Apple Macbook.  The Arduino code would just have one Due send a a couple bits to the other Due, which sends them back to the first, via input/output bits, to prove it works.

Is this possible?  Or do you have to plug in one at a time to do development (compiling / downloading / debugging)?  Or is there some other way to do it?

Osgeld

as far as I know if you have different arduino applications open whatever you set in one will be the setting in the other, though it may not show it

I ran into this not too long ago where I was developing on a mega, but the final target was a 328P device so I opened up another arduino IDE, loaded the arduinoisp sketch to the 328, went back to the mega window attempted to upload a change and got an invalid device signature error from the mega, which the signature was for the 238P.
http://arduino.cc/forum/index.php?action=unread;boards=2,3,4,5,67,6,7,8,9,10,11,66,12,13,15,14,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,86,87,89,1;ALL

userjm4a

So, if I needed the ability to run multiple Due's at once, where each of them could require breakpoints & debugging, then the only safe way would be to have a computer per Due?  That is, 4 Due's would require 4 Airbooks (or PCs) in order to debug all 4 at once, with each Due having a one-to-one connection with its own host computer?

CrossRoads

I've had 2 IDEs running with 2 serial ports open talking to the 2 serial ports on a '1284P.
Don't know why 3 or 4 would be any different, say with a Mega and more USB/Serial adapters, or with more cards.
Designing & building electrical circuits for over 25 years. Check out the ATMega1284P based Bobuino and other '328P & '1284P creations & offerings at  www.crossroadsfencing.com/BobuinoRev17.
Arduino for Teens available at Amazon.com.

Osgeld

#4
Feb 03, 2013, 04:13 am Last Edit: Feb 03, 2013, 04:15 am by Osgeld Reason: 1
yea my situation was 2 different chips, it may act differently with the same chips but different serial ports, I haven explored deeply into it
http://arduino.cc/forum/index.php?action=unread;boards=2,3,4,5,67,6,7,8,9,10,11,66,12,13,15,14,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,86,87,89,1;ALL

Go Up