Skip to main content
Ferzender Varli
Associate II
June 24, 2018
Solved

Flash Download failed - Could not load file .axf Issue

  • June 24, 2018
  • 4 replies
  • 18179 views
Posted on June 24, 2018 at 22:47

Hi,

When I compile a project, I get an error: '.\Objects\uygulama1.axf' - 1 Error(s), 0 Warning(s). Target not created. Then I click Download, I get an error: 'Flash Download failed - Could not load file'

I tried to solve many times and searched on the internet, however it couldn't help me to fix the issue. 

I wonder why Keil can not make xxx.axf file. I use 

MDK-ARM Version 5.25

I also have a project which has an .axf file. On my project, .axf the  couldn't found. So I copied the file from the project I have. I renamed the .axf file as 'uygulama1.axf'. This clearly worked.

But I would like to fix the issue for the next projects.

You can see the issue screenshots below.

Thanks in advance.

#flash-download-failed #target-not-created
Best answer by Ferzender Varli
Posted on June 30, 2018 at 16:48

Thank you for the attention

Turvey.Clive.002

I tried your solution. But I couldn&39t fix it.

I tried another ways to fix. Eventully i fixed it: Options-> C / C + + -> preprocessor Symboles the Define: Enter USE_STDPERIPH_DRIVER instead of USE_STDPERIPH_dRIVER, STM32F4XX, HSE_VELUE=8000000

This way helped me to fix the issue.

4 replies

Tesla DeLorean
Guru
June 24, 2018
Posted on June 24, 2018 at 22:54

Says the link failed because you are missing a symbol.

Turn off asserts, or add the code it needs into main.c

#ifdef  USE_FULL_ASSERT

/**

  * @brief  Reports the name of the source file and the source line number

  *         where the assert_param error has occurred.

  * @param  file: pointer to the source file name

  * @param  line: assert_param error line source number

  * @retval None

  */

void assert_failed(uint8_t* file, uint32_t line)

{

  /* User can add his own implementation to report the file name and line number,

     ex: printf('Wrong parameters value: file %s on line %d\r\n', file, line) */

  /* Infinite loop */

  while (1)

  {

  }

}

#endif
Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
Ferzender Varli
Ferzender VarliAuthorBest answer
Associate II
June 30, 2018
Posted on June 30, 2018 at 16:48

Thank you for the attention

Turvey.Clive.002

I tried your solution. But I couldn&39t fix it.

I tried another ways to fix. Eventully i fixed it: Options-> C / C + + -> preprocessor Symboles the Define: Enter USE_STDPERIPH_DRIVER instead of USE_STDPERIPH_dRIVER, STM32F4XX, HSE_VELUE=8000000

This way helped me to fix the issue.

IGard
Visitor II
August 22, 2019

Go to  Options->Output at the end of Name of Executable add .axf

This way helped me to fix same issue.

Associate
February 9, 2025

thank ypu pal. 

DBhav.1
Associate
May 17, 2020

@IGard​ 

Thank you for the solution it worked perfectly with me.

little bit trouble in finding options tho so no more trouble

in KEIL go to Project --> Options for target 'your project name' --> Output --> Name of Executable just add .axf after your project name.8)