Fail in loading flash loader on IAR Workbench

13.8k views Asked by At

I am working on IAR Workbench platform V7.70.1 and I am triying to download a simple code (a simple main with a while(1) only into it), but I'm not succeding to download the code on the processor. I am using the board NUCLEO-F401RE of STM company, based on the processor STM32F401RE. I'm am getting the following message:

Failed to load flash loader: C:\Program Files\IAR Systems\Embedded Workbench 7.5\arm\config\flashloader\ST\FlashSTM32F401xE.flash

If someone is familiar with the issue, some help would save me. I read something about this issue on this link but I did not understand what I'm supposed to do:

Thank you in advance

3

There are 3 answers

0
Matthew Vernon On

Look at the ST-Link reset type. Often the ST debug interface can not connect due to the processor state.

Form the menu bar select Project->Options then ST-Link from the list on the left. The Reset box is normally set to Normal but can be changed to Connect during reset which will hold the processor in reset while connecting the debugger before any code can execute.

0
itshak gozali On

the solution is very simple - go to Project->Option->Debugger->Download - uncheck the checkbox "Override default.board file".

have a good day Itshak

0
Lukas On

For me this worked:

I erase my Port with "CrossCore Serial Flash Programmer" Then under Project->Options->Debugger->CMSIS DAP->Setup I choose "Software". Then I debug once. Then I choose "Hardware" in the same setting window. Debug again. Then it worked. Some other software might mess up the correct serial settings, thats why you have to erase and reset them.