disk91.com
STM32 and Arduino, working with a custom board - disk91.com - technology blog
When using STM32 custom design with arduino environment you need a dedicated board configuration and manage firmware transfer as detailed in this post.