STM32 development on FreeBSD?

A FreeBSD User <[email protected]> Wed, 5 Aug 2026 12:09:13 +0200
Newsgroups gmane.os.freebsd.current,gmane.os.freebsd.devel.arm
Message-ID <[email protected]>
--Sig_/YRpw3=jdC.Jn9pfVXtYIuZ_
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: quoted-printable

Hello,

I was wondering if FreeBSD (I'm with 15-STABLE and CURRENT) could provide a=
 suitable STM32
development platform?
I'am a novice in that matter! I have some minor (bad) experience with ESP-I=
DF/Espressif and
xtensa-esp-elf/riscv32-esp-elf (extremely fragile) toolchain and since I'm =
not bound to the
MCU, I think I should try STM32 (the aim is a small appliance targetting fl=
ight controllers,
so STM32 might be the better choice).

I found some remarks on the net, at least=20

https://gist.github.com/jj1bdx/0eeb447882ccf695b7d9 (last active 4 years ag=
o) favoring
devel/gcc-arm-embedded (gcc14, but the port is broken on CURRENT),

I tried avoiding older (i.e. pre 2020) hits on google search. I also found =
hints using=20

devel/arm-eabi-gcc, devel/arm-eabi-newlib (would like to have picolibc inst=
ead, but no ports
so far).

Major question: is someone developing for STM32 MCUs on FreeRTOS or equival=
ent and willing
toshare with a beginner some hints and tricks how to setup the environment?=
 I'd prefere a
simple Makefile driven environemnt, I made bad experiences as a starter wit=
h the Python hell
and cmake/ninja in ESP-IDF from Espressif which is a moving target.

On the other hand, since LLVM is the standard compiler in FreeBSD, I'm will=
ing to focus on
that compiler suite as well but didn't find any STM32 related hints in the =
ports tree.

For some existing tiny projects of mine I'd like to use FreeRTOS, but for s=
ome flight
controller experiments I'd like to compile betaflight or Ardupilot (on Free=
BSD). This info
just for the record.

I'd like to stay with FreeBSD as a main development and workstation platfor=
m, so in the first
approach I try to avoid any Linux.

Thank you very much and thanks for the patience, even if it might hurt. And=
 I see forward to
read from you.

Thanks in advance,

oh


--=20

A FreeBSD user

--Sig_/YRpw3=jdC.Jn9pfVXtYIuZ_
Content-Type: application/pgp-signature
Content-Description: OpenPGP digital signature

-----BEGIN PGP SIGNATURE-----

iJEEARYKADkWIQRQheDybVktG5eW/1Kxzvs8OqokrwUCanML5BsUgAAAAAAEAA5t
YW51MiwyLjUrMS4xMiwyLDMACgkQsc77PDqqJK8tYwEAl345Skr4hOQkAk/pCQQb
AZoWOJOZBSSW8Fj+h2riy1oA/0IJDFnIQS4MJGP9bwM0FM5zRBj6NPBg0742w3G2
3agB
=LCAm
-----END PGP SIGNATURE-----

--Sig_/YRpw3=jdC.Jn9pfVXtYIuZ_--