How to Solve Flash Download failed – “Cortex-M3”

A few days ago, when playing stm32f1, there was such an error when burning the code.

Error:Flash Download failed – “Cortex-M3”

First of all, we must look at the configuration

With different simulators, you need to configure different options. You can see the product description by yourself.

After confirming that there is no problem with the configuration, the same problem still appears. You can go to the configuration box in the following figure:

After clicking “add”, the following programming algorithm will appear:

Find the corresponding model of your chip and click Add to solve the problem.

If it’s really unfortunate that you can’t find the model you need in programming algorithm, you can go directly to the installation keil folder

The MDK keil5/arm/pack/keil/stm32f1xx_ Find the. FLM file corresponding to the chip in DFP/1.1.0/flash

For example: if I can use stm32f1rbt6256k, I will choose stm32f10x_ CL.FLM .

Copy the selected file to MDK keil5/arm/flash. If there is a same file in the path, replace it.

In this way, you can see the chip model you need in programming algorithm.

Similar Posts: