Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability to flash multiple teensys? #5

Open
mgcrea opened this issue Mar 25, 2015 · 2 comments
Open

Ability to flash multiple teensys? #5

mgcrea opened this issue Mar 25, 2015 · 2 comments

Comments

@mgcrea
Copy link

mgcrea commented Mar 25, 2015

I have an Ubuntu box with 5 teensy boards connected, I'm trying to flash them with an .hex file, but it looks like I can only flash a single one. Any idea on how to solve that? Would it be possible to add an optionnal parameter to select the device?

@PaulStoffregen
Copy link
Owner

You could try adding this to the soft reboot code. But how to distinguish which device? I can't get involved in this.

@mgcrea
Copy link
Author

mgcrea commented Mar 25, 2015

I'll try to find something, thanks.

I think there might be something to do in open_usb_device with libusb_get_string_descriptor_ascii to retrieve and filter by serialNumber.

Here is the output with debug enabled:

$ sudo teensy_loader_cli --mcu=mk20dx256 build-teensy31/teensy-cube-make.hex -v -s
Teensy Loader, Command Line, Version 2.0
Read "build-teensy31/teensy-cube-make.hex": 41568 bytes, 15.9% usage

Searching for USB device:
bus "002", device "001" vid=1D6B, pid=0003
bus "001", device "029" vid=16C0, pid=0483
bus "001", device "010" vid=16C0, pid=0483
bus "001", device "009" vid=16C0, pid=0483
bus "001", device "008" vid=16C0, pid=0483
bus "001", device "007" vid=1A40, pid=0101
bus "001", device "006" vid=05E3, pid=0608
bus "001", device "005" vid=16C0, pid=0483
bus "001", device "004" vid=2341, pid=0043
bus "001", device "003" vid=8087, pid=07DC
bus "001", device "002" vid=05E3, pid=0608
bus "001", device "001" vid=1D6B, pid=0002

Searching for USB device:
bus "002", device "001" vid=1D6B, pid=0003
bus "001", device "029" vid=16C0, pid=0483
Soft reboot performed
Waiting for Teensy device...
 (hint: press the reset button)

Searching for USB device:
bus "002", device "001" vid=1D6B, pid=0003
bus "001", device "029" vid=16C0, pid=0483
bus "001", device "010" vid=16C0, pid=0483
bus "001", device "009" vid=16C0, pid=0483
bus "001", device "008" vid=16C0, pid=0483
bus "001", device "007" vid=1A40, pid=0101
bus "001", device "006" vid=05E3, pid=0608
bus "001", device "005" vid=16C0, pid=0483
bus "001", device "004" vid=2341, pid=0043
bus "001", device "003" vid=8087, pid=07DC
bus "001", device "002" vid=05E3, pid=0608
bus "001", device "001" vid=1D6B, pid=0002

Searching for USB device:
bus "002", device "001" vid=1D6B, pid=0003
bus "001", device "010" vid=16C0, pid=0483
bus "001", device "009" vid=16C0, pid=0483
bus "001", device "008" vid=16C0, pid=0483
bus "001", device "007" vid=1A40, pid=0101
bus "001", device "006" vid=05E3, pid=0608
bus "001", device "005" vid=16C0, pid=0483
bus "001", device "004" vid=2341, pid=0043
bus "001", device "003" vid=8087, pid=07DC
bus "001", device "002" vid=05E3, pid=0608
bus "001", device "001" vid=1D6B, pid=0002

Searching for USB device:
bus "002", device "001" vid=1D6B, pid=0003
bus "001", device "030" vid=16C0, pid=0478
Found HalfKay Bootloader
Read "build-teensy31/teensy-cube-make.hex": 41568 bytes, 15.9% usage
Programming.........................................
Booting

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants