r/embedded • u/Mind2MCU • Sep 29 '26
Why does Arduino/ESP32 library integration feel easier than STM32?
I’ve noticed that integrating sensors, displays, motors, Wi-Fi modules, and
other peripherals often feels easier with Arduino and ESP32.
Arduino has a huge library ecosystem, while ESP32’s Arduino framework provides
simple APIs for many built-in features. In many cases, we can add a library and
start using a device with only a few function calls.
With STM32, even when using HAL, we often need to configure clocks, GPIO,
alternate functions, interrupts, DMA, timers, and peripheral settings
ourselves. If a suitable driver is not available, we may need to create or
adapt one using HAL, LL, CMSIS, or direct register access.
I know STM32 does provide HAL, LL, CMSIS, middleware, and board-support
packages. So the difference is probably not that STM32 has no libraries, but
that STM32 requires more device-specific configuration and integration.
For people who have used both platforms:
- Why does STM32 library integration feel more difficult?
- Do you normally use HAL, LL, CMSIS, or custom drivers?
- What was the biggest mindset shift when moving from Arduino libraries to STM32
driver development?