Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 18 Dec 2016 10:42:38 +0100
From:      Bernd Walter <ticso@cicely7.cicely.de>
To:        Kyle Evans <bsdports@kyle-evans.net>
Cc:        Adrian Chadd <adrian.chadd@gmail.com>, "freebsd-arm@freebsd.org" <freebsd-arm@freebsd.org>
Subject:   Re: Arduino Due
Message-ID:  <20161218094238.GD30676@cicely7.cicely.de>
In-Reply-To: <CACNAnaEoFJry1iTFcieSbs2P8Jv6FzDO7wTB8vXsgOZo7WqJFg@mail.gmail.com>
References:  <20161211034602.3fylwnxfbgl4ehgx@hal9000.meka.no-ip.org> <1752cc8d-fad7-141d-4950-37bb5dde9561@passap.ru> <20161215111151.geyecaxakyn6feau@hal9000.meka.no-ip.org> <CACNAnaGLR7V1Am1myT3fSxgXnHUf_5oy_5P9QxvM%2BjykZcHpVA@mail.gmail.com> <CACNAnaFo32toNNBVAHOd=CWnsNWBtefgz_izVnB_n529MOAquw@mail.gmail.com> <CAJ-VmonQW=c8T2OumD5X1Way1Zz2Ba8pOkv=eEM0AzDD_RzSrw@mail.gmail.com> <CACNAnaEoFJry1iTFcieSbs2P8Jv6FzDO7wTB8vXsgOZo7WqJFg@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, Dec 18, 2016 at 01:41:52AM -0600, Kyle Evans wrote:
> On Sun, Dec 18, 2016 at 1:14 AM, Adrian Chadd <adrian.chadd@gmail.com> 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?

> 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 <bernd@bwct.de> http://www.bwct.de
Modbus/TCP Ethernet I/O Baugruppen, ARM basierte FreeBSD Rechner uvm.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20161218094238.GD30676>