{"action":"created","issue":{"url":"https://api.github.com/repos/sudar/Arduino-Makefile/issues/389","labels_url":"https://api.github.com/repos/sudar/Arduino-Makefile/issues/389/labels{/name}","comments_url":"https://api.github.com/repos/sudar/Arduino-Makefile/issues/389/comments","events_url":"https://api.github.com/repos/sudar/Arduino-Makefile/issues/389/events","html_url":"https://github.com/sudar/Arduino-Makefile/issues/389","id":107330312,"number":389,"title":"Adafruit Bluefruit LE Micro uploading fails","user":{"login":"jonblack","id":175080,"avatar_url":"https://avatars.githubusercontent.com/u/175080?v=3","gravatar_id":"","url":"https://api.github.com/users/jonblack","html_url":"https://github.com/jonblack","followers_url":"https://api.github.com/users/jonblack/followers","following_url":"https://api.github.com/users/jonblack/following{/other_user}","gists_url":"https://api.github.com/users/jonblack/gists{/gist_id}","starred_url":"https://api.github.com/users/jonblack/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jonblack/subscriptions","organizations_url":"https://api.github.com/users/jonblack/orgs","repos_url":"https://api.github.com/users/jonblack/repos","events_url":"https://api.github.com/users/jonblack/events{/privacy}","received_events_url":"https://api.github.com/users/jonblack/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-09-19T12:39:56Z","updated_at":"2015-09-27T17:09:30Z","closed_at":null,"body":"The [Adafruit Bluefruit LE Micro](https://www.adafruit.com/products/2661) is an Arduino compatible board which contains a Bluetooth LE chip and an ATmega32u4.\r\n\r\nThe documentation says the following:\r\n\r\n>You can program the ATmega32u4 over USB using the built-in USB bootloader, either directly with avrdude or using the Arduino IDE (it's the same as used as in the Adafruit Flora or Arduino Leonardo).\r\n\r\nWhen selecting `Leonardo` in the Arduino IDE, compilation and uploading of the `blink` example works fine. Using a Makefile fails to upload with the following error:\r\n\r\n    mkdir -p build-leonardo\r\n    make reset\r\n    make[1]: Entering directory '/home/jon/arduino/example'\r\n    /usr/bin/ard-reset-arduino --caterina  /dev/ttyACM0\r\n    Traceback (most recent call last):\r\n      File \"/usr/bin/ard-reset-arduino\", line 23, in <module>\r\n        ser.setDTR(False) # (see Arduino IDE source code)\r\n      File \"/usr/lib/python2.7/dist-packages/serial/serialposix.py\", line 564, in setDTR\r\n        fcntl.ioctl(self.fd, TIOCMBIC, TIOCM_DTR_str)\r\n    IOError: [Errno 32] Broken pipe\r\n    /usr/share/arduino/Arduino.mk:1432: recipe for target 'reset' failed\r\n    make[1]: *** [reset] Error 1\r\n    make[1]: Leaving directory '/home/jon/arduino/example'\r\n    /usr/share/arduino/Arduino.mk:1408: recipe for target 'upload' failed\r\n    make: *** [upload] Error 2\r\n\r\nThe Makefile contains:\r\n\r\n    BOARD_TAG = leonardo\r\n    ARDUINO_SKETCHBOOK = /home/jon/arduino\r\n    include /usr/share/arduino/Arduino.mk\r\n\r\nI'm using version 1.6.5 of the Arduino IDE and am on Debian."},"comment":{"url":"https://api.github.com/repos/sudar/Arduino-Makefile/issues/comments/143577685","html_url":"https://github.com/sudar/Arduino-Makefile/issues/389#issuecomment-143577685","issue_url":"https://api.github.com/repos/sudar/Arduino-Makefile/issues/389","id":143577685,"user":{"login":"ladislas","id":2206544,"avatar_url":"https://avatars.githubusercontent.com/u/2206544?v=3","gravatar_id":"","url":"https://api.github.com/users/ladislas","html_url":"https://github.com/ladislas","followers_url":"https://api.github.com/users/ladislas/followers","following_url":"https://api.github.com/users/ladislas/following{/other_user}","gists_url":"https://api.github.com/users/ladislas/gists{/gist_id}","starred_url":"https://api.github.com/users/ladislas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ladislas/subscriptions","organizations_url":"https://api.github.com/users/ladislas/orgs","repos_url":"https://api.github.com/users/ladislas/repos","events_url":"https://api.github.com/users/ladislas/events{/privacy}","received_events_url":"https://api.github.com/users/ladislas/received_events","type":"User","site_admin":false},"created_at":"2015-09-27T17:09:30Z","updated_at":"2015-09-27T17:09:30Z","body":"have you tried manually resetting the board just before uploading?"}}