2025-08-20 2:32 PM - edited 2025-08-20 2:45 PM
Hello world :)
Trying to upgrade firmware on series of STLINK-V3MODS on FreeBSD, downloaded 3.16.9 package from [1], after running:
java -jar STLinkUpgrade.jarI got error message "Platform not supported (freebsd)".
Would it be possible to add support for FreeBSD? All should work as on Linux or macOS except serial port names here are /dev/cuaU0, /dev/cuaU1, etc. Ah I notices there are some dynamic libraries involved but these can be cross-compiled easily too let me know if you need support :)
Thanks :)
Tomek
[1] https://www.st.com/en/development-tools/stsw-link007.html
2025-08-21 5:30 AM
Hello,
As far as I know, there is no plan for the ST-Link upgrade tool to support FreeBSD.
2025-08-21 5:41 AM
Thanks @Mike_ST , how can I help to make this happen? Would it be possible to provide only firmware *.bin file so open-source tools can be used?
2025-08-21 6:34 AM
Thank you for you help, but the STM32 ecosystem does not support FreeBSD, so I think it won't happen.
ST doesn't provide the binary file. You have to use the ST-Link Upgrade tool.
You can try to launch a linux VM under free BSD, maybe the upgrade process will work (never tried).
2025-08-21 7:03 AM
Well, okay, at least firmware upgrade tool could be provided, not entire ecosystem, its just a matter of compilation existing solution for FreeBSD not much work :)
2025-08-21 8:37 AM
The problematic for a new platform support is not only a one shot compilation, it also means validation and maintenance. And it's difficult to extract the ST-Link out of an overall ecosystem policy. Concerning STLinkUpgrade.jar, at least we would have to add the platform detection in the jar, but I don't know what would be required for the ST-Link library (is libusb available on FreeBSD, is a native compilation required and enough ... ?) For sure nothing will be done without an official decision, it's not only a matter of workload for this single task. I can discuss the point internally, but I share the Mike_ST's point of view: do not expect to have it soon, I'm sorry
2025-08-21 9:05 AM
Yes, FreeBSD has LibUSB, I did the initial port of OpenOCD here, all software when written properly with no os-specific hardcodes should build out-of-the-box with make/gmake/cmake/ninja :) There are installers and vm images available at [1], OCI images for cloud are also available. You can install packages with `pkg` utility (just like `apt`). I am working on 14.2 release, but you can compile on 10 release and that will work on all above versions dues to compat layer :) Just let me know when you need any support in this area :)
Thank you for your time :)