I'm evaluating FreeBSD 15.1 as a platform for embedded development on ARM microcontrollers.
So far, I can build firmware using both the clang version in base and the gcc-arm-embedded port. And that's all...
Here are the issues I ran into:
I must miss something - or several things, but I have no idea what...
So far, I can build firmware using both the clang version in base and the gcc-arm-embedded port. And that's all...
Here are the issues I ran into:
- Most DAPLink adapters are not recognized by FreeBSD, despite working fine on Linux. I get a "umodem0: Can't setup transfer" error in dmesg and FreeBSD detaches the adapter.
- DAPLink adapters that are recognized by the kernel are not seen by user land tools. Running "minicom -b 115200 -D /dev/ttyU0" shows a ever empty screen. PyOCD waits indefinitely for a probe.
- I have tried with a JLink v12, but PyOCD couldn't detect it either. Maybe that's a PyOCD thing, but it is supposed to work on FreeBSD.
- All my STLink clones are recognized by the kernel. When using them with OpenOCD, I can flash the small amount of MCU it supports, but verification fails and the reset command is not supported. After flashing, I have to disconnect the STLink adapter and reconnect it for the MCU to execute the new firmware. I've tried both the openocd and openocd-devel ports with the same result.
I must miss something - or several things, but I have no idea what...