Created attachment 181331 [details] svn(1) diff of devel/bossa Adding the 1200bps hack to devel/bossa should improve reliability of programming the Arduino Due with devel/arduino16 + devel/bossa. Right now, the IDE performs the 1200bps reset and then delegates programming to BOSSA, which fails a good chunk of the time. The overhead and latency between these two seems to make BOSSA fail to program the device quite frequently. This patch has been submitted upstream, and a future patch will be delivered to make devel/arduino16 take advantage of the new feature. PORTREVISION bumped for the patch. Looked over with: portlint -AC Tested with: Poudriere (-HEAD, amd64)
Comment on attachment 181331 [details] svn(1) diff of devel/bossa This is still not quite right, unfortunately. =( It addresses cases where there is no sketch flashed to the device, but it's not doing something that the CDC handling in the SAM core wants. I will submit another patch soon-ish.
Take.
Created attachment 181352 [details] svn(1) diff of devel/bossa Alright, figured it out. =) New version adds a total of six (6) patches and works consistently.
A commit references this bug: Author: bsam Date: Wed Apr 19 20:19:33 UTC 2017 New revision: 438912 URL: https://svnweb.freebsd.org/changeset/ports/438912 Log: devel/bossa: Adding the 1200bps hack to devel/bossa should improve reliability of programming the Arduino Due. PR: 218241 Submitted by: Kyle Evans <bsdports@kyle-evans.net> (maintainer) Changes: head/devel/bossa/Makefile head/devel/bossa/files/ head/devel/bossa/files/patch-src_PosixSerialPort.cpp head/devel/bossa/files/patch-src_PosixSerialPort.h head/devel/bossa/files/patch-src_SerialPort.h head/devel/bossa/files/patch-src_WinSerialPort.cpp head/devel/bossa/files/patch-src_WinSerialPort.h head/devel/bossa/files/patch-src_bossac.cpp
Committed, thanks!