stm32下载错误Error:Flash Download failed - “Cortex-M3”

目录

1.没有选择正确的Device

 2.启动文件与内存大小不对应

3.另一个设置内存的地方


1.没有选择正确的Device

stm32下载错误Error:Flash Download failed - “Cortex-M3”_第1张图片

 2.启动文件与内存大小不对应

在C/C++中

大容量芯片对应STM32F10X_HD,USE_STDPERIPH_DRIVER

中等容量对应STM32F10X_MD,USE_STDPERIPH_DRIVER

小容量对应STM32F10X_LD,USE_STDPERIPH_DRIVER

stm32下载错误Error:Flash Download failed - “Cortex-M3”_第2张图片

 修改字母后还需要确认工程CORE文件中确实有对应容量的启动文件

stm32下载错误Error:Flash Download failed - “Cortex-M3”_第3张图片

3.另一个设置内存的地方

在Debug——Settings中的Flash Dowmload 

stm32下载错误Error:Flash Download failed - “Cortex-M3”_第4张图片

通过ADD/Remove添加正确的Flash容量 

 

你可能感兴趣的:(stm32,单片机,arm)