From owner-freebsd-arm@freebsd.org Sun Dec 18 07:14:36 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 8EB07C863F2 for ; Sun, 18 Dec 2016 07:14:36 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-wm0-x229.google.com (mail-wm0-x229.google.com [IPv6:2a00:1450:400c:c09::229]) (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 2354A1A4B for ; Sun, 18 Dec 2016 07:14:36 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: by mail-wm0-x229.google.com with SMTP id g23so69061526wme.1 for ; Sat, 17 Dec 2016 23:14:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=LhiBxeZlFkFSDy7ktpz8liHyVGDKl/bEPXlwAc+puKE=; b=USYWFKOT9rhaoHsDO5I7uOdOxpuTawLTCLmzSXEcsURat4vGbL83hw5dYQCuMCKsu6 4ASgWFOp2DzSWm5FgBtQm72VdbQ2XyNZBw0/u76yDF27key69ndFJYSbxZCL9eTRshvB i6vl5qg681YTRxNikwi3DS48DCHWsqpA2hfPnor0yWFCbXzMqivLFfrDxtePqPiZNbQ+ rcaEcXnaVTC1wnNC+vmqyBjhnxm/uRbXDR1BS2Imtxf5pMioVzEmXQMAwuQoFcKG8QOD sM2RxZIZ8bR0kTfOR73qAtOIr0ka4v5K9h0w8xQ/j9yUYKrXS7l0dX9f6G+LbBlEAA1Y S5Rg== 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:content-transfer-encoding; bh=LhiBxeZlFkFSDy7ktpz8liHyVGDKl/bEPXlwAc+puKE=; b=mPNA8uUQkrB+5gSc0NDkzcpNPrgesjPaLC8MU8jbOp6JNcIB2BIydL5q6/pynAWKm5 Pa536GHaF9uQpbrOCGl4Dw5u4FBlmNBOCsz6tN69tNfaex3WrS77qneOOPa4CHdSjLHf IOM1So6KhOv+oe1O4JNMcUd6qpPvuAZ7o+7p5gBiwMYM2OXaaRK8rDymDw+iWiobYYLW bQ6ztz93Jmo09XMCM3hoIJSDTjF3fsoF/rqDWwWVG6Iyo7MvECFwcQ1lEnbhMW2t3g9Q Z3Qa4K6O9QkG5ZJYqG3/8hA/QlO809ntIZ0ijvzsczOi25utwhlwq09A4DrgmDZDTFWb D0ww== X-Gm-Message-State: AIkVDXIOB99S58RgUHFnFwmsDn+hgDMbQzzn9DDRWd3zs7A8F0fTCE8cJJlCoA4wyN0mDeoOywctHtImVlXyeQ== X-Received: by 10.28.188.87 with SMTP id m84mr8400428wmf.14.1482045274054; Sat, 17 Dec 2016 23:14:34 -0800 (PST) MIME-Version: 1.0 Received: by 10.194.44.1 with HTTP; Sat, 17 Dec 2016 23:14:33 -0800 (PST) In-Reply-To: References: <20161211034602.3fylwnxfbgl4ehgx@hal9000.meka.no-ip.org> <1752cc8d-fad7-141d-4950-37bb5dde9561@passap.ru> <20161215111151.geyecaxakyn6feau@hal9000.meka.no-ip.org> From: Adrian Chadd Date: Sat, 17 Dec 2016 23:14:33 -0800 Message-ID: Subject: Re: Arduino Due To: Kyle Evans Cc: =?UTF-8?B?R29yYW4gTWVracSH?= , "freebsd-arm@freebsd.org" Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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 07:14:36 -0000 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 On 15 December 2016 at 06:36, Kyle Evans wrote: > On Thu, Dec 15, 2016 at 5:11 AM, Goran Meki=C4=87 wro= te: >> Hello, >> >> So I did a little checks and I think it's the cross compiling that's fau= lty. I generated blink led .bin file on Linux and FreeBSD. I can flash any = of them from FreeBSD using bossac, and Linux .bin file works, FreeBSD one d= oesn't (the led is always lit). I checked the commands Arduino IDE is using= on Linux and FreeBSD, and they are the same. I tried this with arm-none-ea= bi-gcc versions 4.9, 5.3 and 6.2. As all those versions are failing, maybe = it's not GCC but binutils or something like that (just a wild guess). I wou= ld be really grateful if someone could tell me how to pinpoint the error ev= en more. Thank you! >> >> Just for reference, on Arduino Due the MCU is Cortex M3. >> >> Regards, >> meka > > Hi, > > That's interesting. I was able to successfully program my Due's with > FreeBSD-compiled projects a couple of times -- generally simple ones > that just connected and tested the serial plotter/monitor. > > However, we do differ from upstream a bit in that upstream seems to be > sticking to arm-none-eabi-gcc 4.8.3 -- I kind of wonder if we're > missing some flags in compilation/linking, but that wouldn't really > explain why my simple tests worked out. =3D( > _______________________________________________ > freebsd-arm@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-arm > To unsubscribe, send any mail to "freebsd-arm-unsubscribe@freebsd.org"