cancel
Showing results for 
Search instead for 
Did you mean: 

Flash Download failed - Could not load file .axf Issue

Ferzender Varli
Associate II
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
1 ACCEPTED SOLUTION

Accepted Solutions
Ferzender Varli
Associate II
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.

View solution in original post

4 REPLIES 4
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
Up vote any posts that you find helpful, it shows what's working..
Ferzender Varli
Associate II
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
Associate

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

This way helped me to fix same issue.

DBhav.1
Associate II

@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)