How to Solve STM32 no flash error

Click setting

Add the corresponding MCU

Read More: