Keil Logo

GENERAL: MPS2+ board: Unable to open new AXF file


Information in this knowledgebase article applies to:

  • MPS2+ board

SYMPTOM

After successfully building a new MDK-ARM project, I copy the new *.axf file onto the SD card on the prototype board. Then I edit the file images.txt to point to the new *.axf. When I reset the board, LOG.txt reports the following error:

ARM V2M-MPS2 CMSIS-DAP Firmware v2.2.1
Build Date: Mar  8 2017

Time :  01:52:09
Date :  19:01:2000

MotherBoard Revision C Variant A
MotherBoard Serial Number 0260880201-0001

ARM V2M Boot Loader v1.0.0


Switching on main power...

Configuring motherboard (rev C, var A)...

Reading Board File \MB\HBI0263C\AN511\an511_v1.txt

Configuring FPGA from file \MB\HBI0263C\AN511\an511_v1.rbe
FPGA config: PASSED

OSCCLK config: PASSED

Writing SCC 0x00000010 with board revision C
Writing SCC 0x00000000 with 0x00000001

Reading images file \MB\HBI0263C\AN511\images.txt
Writing AXF or ELF File \SOFTWARE\webserver.axf
Unable to open file
ERROR: Failed to Write File \SOFTWARE\webserver.axf to Address 0x0

End of log file.

What does this error mean?

CAUSE

In this case, the filename for the image is too long. Verify that the base name of the file is 8 characters or less. The MPS2+ board only supports short (SFN or 8.3) filenames. Feel free to use extra folders to distinguish between different images.

RESOLUTION

In Options for Target => Output tab, shorten the name of the executable to eight characters or less.

Ex.
"webserver" => "webserver.axf" //Error
"webserve" => "webserve.axf"   //OK

Rebuild the project, copy over the new image, update images.txt with the shortened name, and try resetting the board.

MORE INFORMATION

Last Reviewed: Wednesday, November 8, 2017


Did this article provide the answer you needed?
 
Yes
No
Not Sure
 
  Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.

Change Settings

Privacy Policy Update

Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.