Using uVision Eval version with Xilinx DesignStart examples

If you are using the evaluation version of Keil MDK with the Cortex-M1 or Cortex-M3 DesignStart FPGA Xilinx Edition packages, you may encounter a problem running the make_hex_a7.bat post processing script. Part of this post processing is to generate a .elf file which is then used by the software update flow. This flow combines the FPGA bitstream with a new software image to create a new bitstream for download to the FPGA (see section 6.6 of the user guide).

In detail, the post processing script uses the fromelf program to convert a .axf file into a .elf file. If you have a fully licensed version of Keil MDK, this process will work with no changes required.

If you are using the evaluation version of Keil MDK, you can simply rename the .axf file, and the software update process will work correctly. To modify the batch file, replace the following line:

call fromelf --elf        --output bram_a7.elf objects\m1_for_arty_a7.axf

with this one:

copy  objects\m1_for_arty_a7.axf bram_a7.elf

Note that the update process takes the software image from a different location compared with the location where it will be generated, so the copy is required every time you make changes to the software image.