Error:
Error:Flash Download failed – “Cortex-M3”
Solution:
1. The correct device is not selected
2. The boot file does not correspond to the memory size
In C/C++
Large capacity chip corresponds to STM32F10X_HD,USE_STDPERIPH_DRIVER
Medium capacity corresponds to STM32F10X_MD,USE_STDPERIPH_DRIVER
Small capacity corresponds to STM32F10X_LD,USE_STDPERIPH_DRIVER
After modifying the letters, it is also necessary to confirm that there is a startup file with corresponding capacity in the project CORE file
3. Another place to set memory
Flash Dowmload in Debug Settings
Add correct Flash capacity through ADD/Remove