arduino_sketches icon indicating copy to clipboard operation
arduino_sketches copied to clipboard

Programming multiple devices

Open gcormier opened this issue 3 years ago • 0 comments

Hey Nick - I'm not sure if this is the best way to contact you or not, if there is a better way please let me know.

I stumbled on this http://www.gammon.com.au/uploader and was delighted.

My goal is a standalone device that can flash connected devices sequentially, since it takes time to load the boards in each bed of nails, one can be programming while the next is being inserted/removed. My initial guess is for it to have 3 "bays", although 2 might suffice. I also have some constraints by the current chip shortage :)

That said, is it necessary to use a hardware SPI port on the host to flash the target device? Or can we use any pin and bit-bang it, and is that covered in your code?

My currently draft is an ATMEGA328PB. SPI0 is used for the MicroSD card. SPI1 to program a target. However, the issue is that since they share that bus, with separate pins for RESET, once programmed a device may start to drive the bus. Therefore, a suggestion was made to use different pins for each device.

The schematic with the potential issue is below.

Thanks, Greg

image

gcormier avatar Feb 01 '22 19:02 gcormier