From owner-freebsd-arm@freebsd.org Sun Dec 18 15:13:53 2016 Return-Path: Delivered-To: freebsd-arm@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 51DA0C86150 for ; Sun, 18 Dec 2016 15:13:53 +0000 (UTC) (envelope-from byond.lenox@gmail.com) Received: from mail-wm0-f44.google.com (mail-wm0-f44.google.com [74.125.82.44]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id F1E321CE2 for ; Sun, 18 Dec 2016 15:13:52 +0000 (UTC) (envelope-from byond.lenox@gmail.com) Received: by mail-wm0-f44.google.com with SMTP id g23so74255916wme.1 for ; Sun, 18 Dec 2016 07:13:52 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=7aMQWk5aoimKsC61XeFAH8yEivKHxN0MZzt8/mW11aQ=; b=fs57cW7cOwxdU9N4ZiOoS9ZAji76qc03g11QZfpeQ52lYmSRf66/RYsQNvqkz7thkG h447OhLHindNYRJn0fR+kWC5aSr0PCOof/jvqPS+g5nS1F2zrRGg1zu52kao55HD85n7 0RLRBPe541GD64Jogp6ICYr5gy6gDZd492YZqs6uzoO3erL9VRTdwEZH7EPZUqCATamY gYy09ahsTObOEP0Vm8MwDaYaqJYrhQGySi9uoAUXHo1DDDNoxdhiQ18BmLGtz9jIaFNA jSs/aOf4du0HJOQ1Zc9cA6DgOSJzSEF70hEhrLFCJa8RiSZeD7Zpl+06WSYm8kgEfWHu UYUg== X-Gm-Message-State: AIkVDXKUzf5D/9EdeyZ+o0bxcJbnye0XFU1Ft8PweTFXDcK184OAjEiEMgYJLYktXpNO3g== X-Received: by 10.28.140.136 with SMTP id o130mr10894694wmd.76.1482074025060; Sun, 18 Dec 2016 07:13:45 -0800 (PST) Received: from mail-wj0-f180.google.com (mail-wj0-f180.google.com. [209.85.210.180]) by smtp.gmail.com with ESMTPSA id gk6sm16316167wjc.46.2016.12.18.07.13.44 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 18 Dec 2016 07:13:44 -0800 (PST) Received: by mail-wj0-f180.google.com with SMTP id xy5so129456510wjc.0 for ; Sun, 18 Dec 2016 07:13:44 -0800 (PST) X-Received: by 10.194.242.101 with SMTP id wp5mr719662wjc.11.1482074024764; Sun, 18 Dec 2016 07:13:44 -0800 (PST) MIME-Version: 1.0 Received: by 10.28.44.8 with HTTP; Sun, 18 Dec 2016 07:13:43 -0800 (PST) Received: by 10.28.44.8 with HTTP; Sun, 18 Dec 2016 07:13:43 -0800 (PST) In-Reply-To: <20161218094238.GD30676@cicely7.cicely.de> References: <20161211034602.3fylwnxfbgl4ehgx@hal9000.meka.no-ip.org> <1752cc8d-fad7-141d-4950-37bb5dde9561@passap.ru> <20161215111151.geyecaxakyn6feau@hal9000.meka.no-ip.org> <20161218094238.GD30676@cicely7.cicely.de> From: Kyle Evans Date: Sun, 18 Dec 2016 09:13:43 -0600 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: Arduino Due To: ticso@cicely.de Cc: freebsd-arm@freebsd.org, Adrian Chadd Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 18 Dec 2016 15:13:53 -0000 On Dec 18, 2016 03:42, "Bernd Walter" wrote: On Sun, Dec 18, 2016 at 01:41:52AM -0600, Kyle Evans wrote: > On Sun, Dec 18, 2016 at 1:14 AM, Adrian Chadd wrote: > > hiya, > > > > can people upload example working / not working code and generated > > binaries? Surely this is something a bit of disassembly should quickly > > show. (eg, some mismatch ABI between runtimes and generated code,.) > > > > > > -a > > > > > > Hi, > > I'm attaching some files that Goran has sent me off list, which I'm > still working up some time to sit down with and examine. Included are > compiled binaries and their associated build logs. I don't think he > explicitly stated and I haven't been able to check, but I assume these > are from the Blink example packaged with the IDE. > > His other problem, not being able to program the Due from the IDE, is > one that I've experienced intermittently and have yet to pin down the > exact cause for. In my experiences, it was that the IDE seemingly > wouldn't perform the 1200 bps open/close after the first time I'd > programmed it. Closing and re-opening the IDE or reconnecting the Due > was fine. It does occur to me that I didn't think to ask if he was > using the native port or the programming port -- I don't think I've > ever had any luck with programming via the native port. I'm pretty amazed that people even got so far. The arduino IDE (which I really hate to be honest) and avr-gcc is in the ports. But how do you install the arm toolchain matching with the arduino expectations? devel/arm-none-eabi-gcc and devel/arm-none-eabi-newlib pretty much covers it (we use a newer version of both than upstream, though). CMSIS is bundled with devel/arduino-core. > I would have liked it if this detail was completely moved into > devel/bossa, which is actually programming the device, but that idea > has since been rejected upstream. I'm not entirely convinced that it's > really doing the open/close properly or that there's not simply too > much delay between triggering the bootloader and devel/bossa connecting. Not sure about the arduino case, but with the ESP8266 I saw some USB uarts worked fine (CP2102) and others (CH340) failed to start programming. Adding some retries for the init handshake helped. No idea what happens exactly, because the data itself looked fine when I'd traced it with another USB uart. There might be some timing differences. -- B.Walter http://www.bwct.de Modbus/TCP Ethernet I/O Baugruppen, ARM basierte FreeBSD Rechner uvm. The ESP8266 is devel/bossa supported as well, yeah? That's an interesting datapoint. Does it require the 1200 bps init to erase and reboot in bootloader mode?