arduino_sketches icon indicating copy to clipboard operation
arduino_sketches copied to clipboard

Trying to program multiple target arduino chip at once

Open akshulg opened this issue 4 years ago • 2 comments

I am trying to program multiple chips at once. Made a prototype by multiplexing chip select pin of the master arduino on which this program will be uploaded. So far its not working. I also tried connecting RESET pin of target arduino to its chip select pin but that is also not working. Any help? This is a rough block diagram of the multiplexing of chip select pin - https://imgur.com/a/XX4Nyf8

akshulg avatar Nov 09 '20 11:11 akshulg

You won't be able to do that. Programming each chip requires a response from it. Tying all the MISO/MOSI/SCK lines together won't work. For one thing, MISO are all inputs to the programming board, so they will "fight" each other. The programming individually only takes a few seconds, so I wouldn't waste time trying to do them in bulk.

nickgammon avatar Nov 10 '20 02:11 nickgammon

So what I am trying now is to connect RESET of other targets to gnd when programming the first one. This works but have to figure out how to automate this. Also getting some weird behaviour as well so trying to figure out if this will work. I am discussing this on this forum - https://arduino.stackexchange.com/questions/79199/programming-multiple-arduino-at-once It will be helpful if you can give some feedback. Thanks a lot

akshulg avatar Nov 10 '20 10:11 akshulg