Re: STM32 development on FreeBSD?

"Abdelkader Boudih" <[email protected]> Wed, 05 Aug 2026 13:46:13 +0100
Newsgroups gmane.os.freebsd.current,gmane.os.freebsd.devel.arm
Message-ID <[email protected]>
--6825dda575711ab7b579b16c6d7d47ee8ca604c4
Content-Type: text/plain
Content-Transfer-Encoding: 7bit

I have the full STM32/ESP32/Arduino toolchain working on current. I need to fetch it from my local git and push it in github this weekend. 

 I don't use FreeRTOS, currently, but i do have ChibiOS ported.

And before you ask why i didn't contribute upstream ? I did , and they either leave the PR open forever, don't have the capacity to maintain the fork or they just close it while assuming FreeBSD is some distro of linux. 

If you want to contribute instead go ahead, it mostly Makefile conditions.

Maybe we should just add it in ports.

On Wed, 5 Aug 2026, at 11:09, A FreeBSD User wrote:
> 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-IDF/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 flight controllers,
> so STM32 might be the better choice).
> 
> I found some remarks on the net, at least 
> 
> https://gist.github.com/jj1bdx/0eeb447882ccf695b7d9 (last active 4 years ago) 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 
> 
> devel/arm-eabi-gcc, devel/arm-eabi-newlib (would like to have picolibc instead, but no ports
> so far).
> 
> Major question: is someone developing for STM32 MCUs on FreeRTOS or equivalent 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 with 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 willing 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 some flight
> controller experiments I'd like to compile betaflight or Ardupilot (on FreeBSD). This info
> just for the record.
> 
> I'd like to stay with FreeBSD as a main development and workstation platform, 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
> 
> 
> -- 
> 
> A FreeBSD user
> 

--6825dda575711ab7b579b16c6d7d47ee8ca604c4
Content-Type: text/html
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html><html><head><title></title></head><body><div>I have the f=
ull STM32/ESP32/Arduino toolchain working on current. I need to fetch it=
 from my local git and push it in github this weekend.&nbsp;</div><div><=
br></div><div>&nbsp;I don't use&nbsp;FreeRTOS, currently, but i do have =
ChibiOS ported.</div><div><br></div><div>And before you ask why i didn't=
 contribute upstream ? I did , and they either leave the PR open forever=
, don't have the capacity to maintain the fork or they just close it whi=
le assuming FreeBSD is some distro of linux. </div><div><br></div><div>I=
f you want to contribute instead go ahead, it mostly Makefile conditions=
.<br></div><div><br></div><div>Maybe we should just add it in ports.</di=
v><div><br></div><div>On Wed, 5 Aug 2026, at 11:09, A FreeBSD User wrote=
:</div><blockquote type=3D"cite" id=3D"qt" style=3D""><div>Hello,</div><=
div><br></div><div>I was wondering if FreeBSD (I'm with 15-STABLE and CU=
RRENT) could provide a suitable STM32</div><div>development platform?</d=
iv><div>I'am a novice in that matter! I have some minor (bad) experience=
 with ESP-IDF/Espressif and</div><div>xtensa-esp-elf/riscv32-esp-elf (ex=
tremely fragile) toolchain and since I'm not bound to the</div><div>MCU,=
 I think I should try STM32 (the aim is a small appliance targetting fli=
ght controllers,</div><div>so STM32 might be the better choice).</div><d=
iv><br></div><div>I found some remarks on the net, at least&nbsp;</div><=
div><br></div><div><a href=3D"https://gist.github.com/jj1bdx/0eeb447882c=
cf695b7d9">https://gist.github.com/jj1bdx/0eeb447882ccf695b7d9</a> (last=
 active 4 years ago) favoring</div><div>devel/gcc-arm-embedded (gcc14, b=
ut the port is broken on CURRENT),</div><div><br></div><div>I tried avoi=
ding older (i.e. pre 2020) hits on google search. I also found hints usi=
ng&nbsp;</div><div><br></div><div>devel/arm-eabi-gcc, devel/arm-eabi-new=
lib (would like to have picolibc instead, but no ports</div><div>so far)=
.</div><div><br></div><div>Major question: is someone developing for STM=
32 MCUs on FreeRTOS or equivalent and willing</div><div>toshare with a b=
eginner some hints and tricks how to setup the environment? I'd prefere =
a</div><div>simple Makefile driven environemnt, I made bad experiences a=
s a starter with the Python hell</div><div>and cmake/ninja in ESP-IDF fr=
om Espressif which is a moving target.</div><div><br></div><div>On the o=
ther hand, since LLVM is the standard compiler in FreeBSD, I'm willing t=
o focus on</div><div>that compiler suite as well but didn't find any STM=
32 related hints in the ports tree.</div><div><br></div><div>For some ex=
isting tiny projects of mine I'd like to use FreeRTOS, but for some flig=
ht</div><div>controller experiments I'd like to compile betaflight or Ar=
dupilot (on FreeBSD). This info</div><div>just for the record.</div><div=
><br></div><div>I'd like to stay with FreeBSD as a main development and =
workstation platform, so in the first</div><div>approach I try to avoid =
any Linux.</div><div><br></div><div>Thank you very much and thanks for t=
he patience, even if it might hurt. And I see forward to</div><div>read =
from you.</div><div><br></div><div>Thanks in advance,</div><div><br></di=
v><div>oh</div><div><br></div><div><br></div><div>--&nbsp;</div><div><br=
></div><div>A FreeBSD user</div><div><br></div></blockquote><div><br></d=
iv></body></html>
--6825dda575711ab7b579b16c6d7d47ee8ca604c4--