在keil里面,选择对应芯片的flash,否则有可能在下载仿真时会出现 Eorre:flash download fail
步骤:1.options for target
2.Utilities->settings
3.add
添加对应的flash即可