arduino / Arduino

Arduino IDE 1.x
https://www.arduino.cc/en/software
Other
14.18k stars 7.01k forks source link

IDE uses bootloader folder name rather than upload protocol to determine upload protocol [imported] #1003

Closed cmaglie closed 11 years ago

cmaglie commented 12 years ago

This is Issue 1003 moved from a Google Code project. Added by 2012-08-09T18:07:21.000Z by mike.h...@gmail.com. Please review that bug for more context and additional comments, but update this bug.

Original labels: Type-Defect, Priority-Medium

Original description

What steps will reproduce the problem?

  1. In "boards.txt" change bootloader.path value for any board using the avr109 USB upload protocol to anything but "caterina".
  2. Attempt to upload a sketch to that board.

What is the expected output? Arduino IDE should report that it changes the baud rate to 1200 and opens/closes the port; then it should wait until the current port disappears from the port list and a new one appears. It should use the new port to upload code to the board via avrdude.

What do you see instead? Arduino IDE immediately attempts to upload code to the board without first activating the bootloader. avrdude communications fail because the bootloader isn't running.

What version of the Arduino software are you using? On what operating system? Which Arduino board are you using? Using v1.0.1 under Win7 Pro; using a custom board.

cmaglie commented 11 years ago

This is solved in Arduino 1.5 with the keyword:

upload.use_1200bps_touch=true

see:

https://github.com/arduino/Arduino/blob/429b5168d82a76b94e9360d9b416e5808e420119/hardware/arduino/avr/boards.txt#L224

https://github.com/arduino/Arduino/pull/1547

C