Failed to execute MI command - load .elf file
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-01-23 4:43 AM
I have been using a NUCLEO-F413 board to try and understand how to program to user FLASH using the example code in the STMicro repository and STM32Cube to program. However when I now try and program the board I get the below error:
Has me trying to write to the FLASH damaged the program space? If so is it possible to restore it or is the board now dead?
- Labels:
-
STM32F4 Series
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-01-23 4:50 AM
It could be just that the ELF file does not exist ...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-01-23 4:54 AM
The ELF file does exist.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-01-23 5:25 AM
Hello @GTann.1 ,
To resolve the issue with your NUCLEO-F413 board, please install the STM32CubeF4 package from ST.com . Then, navigate to the directory Firmware\Projects\STM32F413ZH-Nucleo\Examples\FLASH and open the flash example project using STM32CubeIDE. Build and run the project on your board, and ensure you follow the instructions provided in the README file to make it work properly.
Regards .
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-01-27 3:16 AM
I have tried this however I still get an error that the .elf file can not be loaded onto the board.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-01-27 5:21 AM
Please uninstall the current version of STM32CubeIDE and reinstall the latest version from ST.com , If you have MDK ARM (Keil) or EWARM (IAR) IDEs available, try running the same project in these environments. These steps will help to identify and isolate the issue.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-01-27 6:25 AM
I still get the error.
If I use a fresh development board it will code with no issue.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-01-27 6:35 AM
I recommend using STM32CubeProgrammer tool to check the state of your board. Try to connect your board using this tool. If the connection is successful, it indicates that the board is functioning correctly. If the connection fails, please send me a snapshot of the error message for further analysis.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-01-27 6:40 AM
Using the Programmer has worked, and I am now able to use STMCube to interface with the board. Thank you
