I am new to STM32 and I think I need the STM32 Cube IDE to program this thing. I got a Nucleo board so I don’t think I need STLink.
HAL library is apparently BSD-3-clause so I got no issue with that, but I’d prefer to not run the Cube IDE.
Is there any open source toolchain to replace what Cube does?


I know that the Rust ecosystem has fully independent toolchains for (some) STM32s. I can only imagine that similar things exist for C++ or whatever you want to use.
Keep in mind that using your own combination of tools (IDE, compiler, flasher, etc.) usually means that there are a few more manual steps involved.
For a beginner (even just in the STM ecosystem) this might or might not be worth it depending on what you want to do and learn.