STM32 is Awesome
I like the Arduino framework because it's easy to use and has a lot of libraries. However, I have been using STM32 for a while now, and I have to say it's awesome. Here are some of the reasons why I like STM32:
1. Performance
STM32 microcontrollers are much faster than Arduino. They have more memory and can run at higher clock speeds. This makes them ideal for applications that require high performance.
For example, if you use an Arduino to control a BLDC motor, you might run into performance issues. The STM32, on the other hand, can handle it with ease. Sometimes you can't even upload the code to an Arduino because it's too big. With STM32, you don't have to worry about that.
2. Cost
Initially, I thought STM32 would be more expensive than Arduino because it's more powerful. However, I was surprised to find out that it's not true. Bluepill boards are as cheap as Arduino Nano boards, and they are much more powerful.
3. Debugging
With a ST-LINK debugger, you can debug your code in real-time. This is a game-changer for me because I can see what's going on inside the microcontroller. It's much better than using Serial.print() like I used to do with Arduino. Also, the debugger, a ST-LINK V2 clone is only $3 on AliExpress.
4. Many Peripherals
STM32 microcontrollers have many peripherals, such as UART, SPI, I2C, ADC, DAC, PWM, etc. This makes them very versatile. For example, the Bluepill has three UART ports, so you can use it as a USB to serial converter.
5. Compatible with Arduino
Since you can use the Arduino framework with STM32, you can still use the libraries you are familiar with. This makes the transition from Arduino to STM32 much easier. Even if you're just starting with electronics, don't worry. STM32 is just as easy as Arduino if you use the Arduino framework.
Conclusion
I highly recommend trying out STM32 if you haven't already. It's a great microcontroller with a lot of potential. If you're looking for a more powerful alternative to Arduino, STM32 is the way to go. You won't regret it.