Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 13 Aug 2021 20:43:32 +0200
From:      Tomasz CEDRO <tomek@cedro.info>
To:        "Brian McGovern (bmcgover)" <bmcgover@cisco.com>
Cc:        "freebsd-questions@freebsd.org" <freebsd-questions@freebsd.org>
Subject:   Re: Arduino Development on aarch64?
Message-ID:  <CAM8r67CT_5KcB8dGufNXNLGkahY3=iV%2Bk2SB1QsUFFs7xyWxuw@mail.gmail.com>
In-Reply-To: <BN6PR11MB1650A23D206F5DA52E7B4013C5FA9@BN6PR11MB1650.namprd11.prod.outlook.com>
References:  <BN6PR11MB1650A23D206F5DA52E7B4013C5FA9@BN6PR11MB1650.namprd11.prod.outlook.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAM8r67CT_5KcB8dGufNXNLGkahY3=iV%2Bk2SB1QsUFFs7xyWxuw>