sudar / Arduino-Makefile

Makefile for Arduino sketches. It defines the workflows for compiling code, flashing it to Arduino and even communicating through Serial.
http://hardwarefun.com/tutorials/compiling-arduino-sketches-using-makefile
GNU Lesser General Public License v2.1
2.02k stars 448 forks source link

Decide whether to reset differently for leonardo and derivatives by parsing boards.txt file #96

Closed sudar closed 11 years ago

sudar commented 11 years ago

Arduino decides to process reset differently by checking whether the bootloader.path in boards.txt is one of the following.

We should also do that, instead of checking the variant.

sej7278 commented 11 years ago

yes

ard-parse-boards leonardo bootloader.path 

ard-parse-boards micro bootloader.path

both return "caterina"

the IDE also seems to sleep for 300ms after setting 1200baud before looking to see if the port has reappeared, so might be worth adding that to your wait-leonardo replacement, kind of what i said in the comment

sudar commented 11 years ago

the IDE also seems to sleep for 300ms after setting 1200baud before looking to see if the port has reappeared, so might be worth adding that to your wait-leonardo replacement, kind of what i said in the comment

Yeah just implemented it.