2025-01-23 04: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?
2025-01-23 04:50 AM
It could be just that the ELF file does not exist ...
2025-01-23 04:54 AM
The ELF file does exist.
2025-01-23 05: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 .
2025-01-27 03:16 AM
I have tried this however I still get an error that the .elf file can not be loaded onto the board.
2025-01-27 05: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.
2025-01-27 06:25 AM
I still get the error.
If I use a fresh development board it will code with no issue.
2025-01-27 06: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.
2025-01-27 06:40 AM
Using the Programmer has worked, and I am now able to use STMCube to interface with the board. Thank you