From owner-freebsd-arm@freebsd.org Thu Dec 15 14:51:01 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 A79C8C81E2D for ; Thu, 15 Dec 2016 14:51:01 +0000 (UTC) (envelope-from byond.lenox@gmail.com) Received: from mail-yb0-f193.google.com (mail-yb0-f193.google.com [209.85.213.193]) (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 67C49159 for ; Thu, 15 Dec 2016 14:51:00 +0000 (UTC) (envelope-from byond.lenox@gmail.com) Received: by mail-yb0-f193.google.com with SMTP id v78so3743998ybe.0 for ; Thu, 15 Dec 2016 06:51:00 -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:content-transfer-encoding; bh=06K2Kw9zd1eXsrBQxftJcgysdguunZDENJMLXDUm56Q=; b=Ko4yLDJPTbFkGBAwWyK0U/P43yT6IpcApZOqkuZj8R+hZEGqJxD6Nlz1zUcgIQg78r UmxvEw9/44Ka2jW0rhpFamt171zdYBVqNQ8Y+bOjy/cXJ2ROGc4yEkPRFveEWMDRzCbR AzEUB/ZGoRYce3ekiXfOFHb2F/TdloKTFgcKE8Zr10/patkuX+4NHFRcsWoVGsCK5vY0 rWIwRs1fZiY/N5DSOKKmYOpQqjyK/Xq1ix+Ee17czOY/IkNfM8+rq1o3rV3F6nyjd7Xo 8TFryW6kEkN6VDjF25WpTwUNQv8cNwaS8C9vMVfDHRAnELEktzydWE9jv4puXXaXNpVc pDEg== X-Gm-Message-State: AIkVDXKCBNkVGqn+q6qVJ+Pml7uzUQxbQeZOiLr5NxihzbzEvR/LEAo4Cp0oPssL8Eyypw== X-Received: by 10.37.111.84 with SMTP id k81mr1314790ybc.141.1481812622451; Thu, 15 Dec 2016 06:37:02 -0800 (PST) Received: from mail-yw0-f172.google.com (mail-yw0-f172.google.com. [209.85.161.172]) by smtp.gmail.com with ESMTPSA id a143sm630494ywe.40.2016.12.15.06.37.02 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 15 Dec 2016 06:37:02 -0800 (PST) Received: by mail-yw0-f172.google.com with SMTP id a10so14645719ywa.3 for ; Thu, 15 Dec 2016 06:37:02 -0800 (PST) X-Received: by 10.129.78.205 with SMTP id c196mr1405125ywb.63.1481812622013; Thu, 15 Dec 2016 06:37:02 -0800 (PST) MIME-Version: 1.0 Received: by 10.37.55.194 with HTTP; Thu, 15 Dec 2016 06:36:41 -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: Kyle Evans Date: Thu, 15 Dec 2016 08:36:41 -0600 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: Arduino Due To: =?UTF-8?B?R29yYW4gTWVracSH?= Cc: Boris Samorodov , 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: Thu, 15 Dec 2016 14:51:01 -0000 On Thu, Dec 15, 2016 at 5:11 AM, Goran Meki=C4=87 wrote= : > Hello, > > So I did a little checks and I think it's the cross compiling that's faul= ty. I generated blink led .bin file on Linux and FreeBSD. I can flash any o= f them from FreeBSD using bossac, and Linux .bin file works, FreeBSD one do= esn'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-eab= i-gcc versions 4.9, 5.3 and 6.2. As all those versions are failing, maybe i= t's not GCC but binutils or something like that (just a wild guess). I woul= d be really grateful if someone could tell me how to pinpoint the error eve= n 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(