Hi Dear all,
I have faced a weird issue and would really appreciate it if anybody can guide me.
I am getting "*** error 56: cannot open file
Error: Flash Download failed - Could not load file d.axf. "
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-10-03 12:10 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-10-03 12:20 PM
This is super poorly expressed
Sounds like KEIL
Sounds like your BUILD FAILED
Figure out why the build failed, start with the first error and work forward as you fix each.
Up vote any posts that you find helpful, it shows what's working..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-10-03 1:25 PM
Agree w Tesla, you don't give many details. That said, it appears that you are trying to flash a .axf file to a target board?? You don't want to do that, you must send over the .bin file.
The .bin will be generatable from the .axf. In my experience (with gcc arm none eabi toolchain), the .bin is contained verbatim within the .axf, so its 'generation' is merely one of extraction.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-10-03 4:03 PM
> the .bin is contained verbatim within the .axf, so its 'generation' is merely one of extraction.
This is the case only if the program (including the linker script) is specially written to ensure this.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-10-03 4:10 PM
Ah, I was unaware of this, thanks for pointing it out. I just always do 'arm-none-eabi-objcopy -O binary foo.axf foo.bin' and get the desired result. I didn't think I had any special .ld file.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-10-04 12:14 PM
Thank you guys for your feedback. Yes, I am trying to program STM32 through its evaluation board which is "H7A3ZI-Q" by Keil. There is no error when I debug the code, but I get that error when I want to send it to the microcontroller.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-10-04 12:24 PM
I did fix the issue, but I get this error! I did try different "flash algorithms, but none of them did work!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-10-04 1:50 PM
The path or name for the project looks odd. Likely not the issue
You probably need to expand the size of RAM allocated if the loader itself is large.
Other than that the panes describing the Target settings might be helpful
Up vote any posts that you find helpful, it shows what's working..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-10-04 2:05 PM
You have a NUCLEO-H7A3ZI-Q board?
STM32Cube_FW_H7_V1.10.0\Projects\NUCLEO-H7A3ZI-Q\Examples\BSP\MDK-ARM\Project.uvoptx
RAM settings for Flash Algorithms
0x20000000 0xFFF4
FLASH
0x08000000 0x200000
STM32H7A-B3_Flash_2M
<Name>UL2CM3(-S0 -C0 -P0 -FD20000000 -FCFFF4 -FN1 -FF0STM32H7A-B3_Flash_2M -FS08000000 -FL0200000 -FP0($$Device:STM32H7A3ZITxQ$CMSIS\Flash\STM32H7A-B3_Flash_2M.FLM))</Name>
Up vote any posts that you find helpful, it shows what's working..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-10-04 2:11 PM
Up vote any posts that you find helpful, it shows what's working..
