You really shouldn’t be using Arduino over STM32. Low end STM boards that are price matched with Arduino are not only more powerful by almost a magnitude, but also have an excellent debugging IDE.
The only thing to watch out for are 3V3 vs 5V but then again if you’re doing anything worthwhile you’ve got a stash of buffers, op amps and MOSFETs.