From owner-freebsd-questions@freebsd.org Fri Aug 13 18:43:55 2021 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 212E565D93D for ; Fri, 13 Aug 2021 18:43:55 +0000 (UTC) (envelope-from tomek@cedro.info) Received: from mail-wm1-x32f.google.com (mail-wm1-x32f.google.com [IPv6:2a00:1450:4864:20::32f]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4GmXWt13q8z4dgR for ; Fri, 13 Aug 2021 18:43:54 +0000 (UTC) (envelope-from tomek@cedro.info) Received: by mail-wm1-x32f.google.com with SMTP id u1so7506415wmm.0 for ; Fri, 13 Aug 2021 11:43:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cedro.info; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=zb2kPL52gf3J9TdCvxwOJhowCttwflZ/jUr1OZ4NTnc=; b=Ca1c0ShoZbSSwQI71tHiH68ufjFwB8XFSdjxOsyEzyWVRZZ3BySvbXhgU6/cDoJdVw Fc/Y6PWbqFkx/QYTbFkk6PzLo9uhL91YGEsK5lQa5RFjcx3YMogInYGCE18wP+EXwl4j +xacqmQCzMu77BHeWf8qFO8Bm8sOTTOefvXxWMlbYctgHPqsIlwuSvpfVxSvSwjRbPdb ewdL4nmtzQtdX7WhwyCwc92+VYnegjh+gEINphbgbOJF9rtcC/YTw6FjkXBY0au1bUKO WDVGX+jI5TrRXS3HmQbUjswxw34kwtDzsx9hDfPNXvDNZr+I6nEXTbBiQR49L8NxRQZ/ yb1g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=zb2kPL52gf3J9TdCvxwOJhowCttwflZ/jUr1OZ4NTnc=; b=itF5sVdN9z8Pdjy193GAU0c6P7hVqT6+61cqhd0GCo7ye5JWeLT5rnLQdZ0Gxz6GKG PyC+0Be5OSeW84tD0jOnerj9KdgueyCb+RZOpnu1eEM8K85aP0HKyPPralEEMa456AQE CE+qukKiw2t6HG0fQxXIAO5f2waho42wYy7rEzIJiXkB/Il4uI7JIVnQlWWPYxTHmmek H8lOh7oG/HKQAkwMMrfNYiYFd0d1SZsCiY6jiBOSiKuz4QVM/4JW7XG86LBmHqpdA5pE ZNtwm1zg6Ak8hYkVjLGZEoRqxHqxlxUkoyZkRBqnazdLR74gM/RwIIH+5gVCYDM0pz6y iRww== X-Gm-Message-State: AOAM53360L5qsog5AqiRks754OPPhg+mMi74pR8KIoS31ObN21p7EaQ6 mkHbU6XuUyRtbZgmgTvCcmhcFruqKsVjGJ7Dxyx+FQ== X-Google-Smtp-Source: ABdhPJz3PtZr7bfexgaZh8WzHniObxTgR6WHaaPkbRPOgbiFWM2EpKYvnokNj4I6Plpbegdxw8Yj0Jy5Ru5RGzig5vM= X-Received: by 2002:a7b:cb02:: with SMTP id u2mr3942818wmj.103.1628880233157; Fri, 13 Aug 2021 11:43:53 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Tomasz CEDRO Date: Fri, 13 Aug 2021 20:43:32 +0200 Message-ID: Subject: Re: Arduino Development on aarch64? To: "Brian McGovern (bmcgover)" Cc: "freebsd-questions@freebsd.org" Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Rspamd-Queue-Id: 4GmXWt13q8z4dgR X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=cedro.info header.s=google header.b=Ca1c0Sho; dmarc=none; spf=none (mx1.freebsd.org: domain of tomek@cedro.info has no SPF policy when checking 2a00:1450:4864:20::32f) smtp.mailfrom=tomek@cedro.info X-Spamd-Result: default: False [-2.25 / 15.00]; TO_DN_EQ_ADDR_SOME(0.00)[]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[cedro.info:s=google]; RCVD_TLS_ALL(0.00)[]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; NEURAL_HAM_MEDIUM(-0.95)[-0.951]; NEURAL_HAM_LONG(-1.00)[-0.999]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; DMARC_NA(0.00)[cedro.info]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[cedro.info:+]; RCPT_COUNT_TWO(0.00)[2]; RCVD_IN_DNSWL_NONE(0.00)[2a00:1450:4864:20::32f:from]; NEURAL_HAM_SHORT(-1.00)[-1.000]; R_SPF_NA(0.00)[no SPF record]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; SUBJECT_ENDS_QUESTION(1.00)[]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; RCVD_COUNT_TWO(0.00)[2]; MAILMAN_DEST(0.00)[freebsd-questions] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 13 Aug 2021 18:43:55 -0000 On Fri, Aug 13, 2021 at 7:34 PM Brian McGovern (bmcgover) wrote: > This is likely a silly question, but is there a solution for doing Arduin= o development on any of the ARM 64 platforms? From what I can see in the cu= rrent ports tree, it looks like gcc for arduino is marked broken for aarch6= 4, as is the Arduino 1.8 IDE. I'm just trying to figure out if I can do so= me Arduino programming (CLI/text mode is fine, IDE is a bit better) from my= PIs, or whether I should plan on an AMD64 platform for this. Hey Brian, very good question, not silly :-) I work with this kind of embedded stuff on FreeBSD AMD64 for years. Also helped with tools for ARM and Linux. So it should be possible on FreeBSD too. I am nor sure on status of some specific tools here with FreeBSD running on ARM sorry I work on AMD64. Your research and patches would be much appreciated in this area :-) It depends on particular target and RTOS that you would like to use. Because I don't really like Arduino and its GUI approach, I prefer standalone shell build environment. I have worked with MBED and Zephyr on FreeBSD with success. Some friends from Brasil tease me with NuttX that was until recent change released on BSD license and it also works on 8-bit+ CPU :-) I usually work with ARM Cortex-M faimily with Zephyr RTOS + gcc-arm-embedded package and pyOCD + Python VirtualEnv for flashing and Debug over DAPLink. Instead using Arduino Espressif for ESP32-C2 (Xtensa CPU) I am using also Zephyr RTOS + Linux toolchain that with my recent patch install itself for Zephyr with just `west espressif install` :-) I have ordered ESP32-C3 with Open-Source RISC-V CPU but will have to wait for a free moment to play with it and Zephyr.. I saw the commits with support added :-) Therefore you may also play with Zephyr or NuttX as the elegant full Open-Source well designed solution :-) Arduino SDK works on FreeBSD AMD64 but it mostly relies on external modules. You can even use it with ESP32-C2 (see wiki below) but that needs some manual dirty hacks to use Linux toolchain.. thus I am not sure if that runs on ARM Linuxlator. Here is small wiki of Electronics on FreeBSD: https://wiki.freebsd.org/electronics You may play with some MCU tools on ARM FreeBSD and update the wiki where necessary :-) Have fun! :-) Tomek --=20 CeDeROM, SQ7MHZ, http://www.tomek.cedro.info