Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
11 years ago

Error with ARM fromelf tool

Hi everyone,

I am working on a Altera Cyclone V SoC development board (http://www.altera.com/products/devkits/altera/kit-cyclone-v-soc.html?gsa_pos=5&wt.oss_r=1&wt.oss=cyclone%20v%20soc%20fpga).

I try to compile a basic bare metal program to test my system on chip using the DS-5 Altera Edition Toolkit (Version 5.14 Build 1702). Everything's fine when I compile, load and debug my project via the DS-5 studio.

My next step is to create a bootable SD card. I have read that I need a .bin file to do this but DS-5 generates .axf executable files. There's a tool called fromelf to convert .axf into .bin.

And there's my problem. When I try to lunch fromelf with the DS-5 command shell, I get this error message:

Environment configured for ARM DS-5 (build 1702)

Please consult the documentation for available commands and more details

C:\EDA\altera\13.0\embedded\ds-5\bin>fromelf.exe --bin --output "C:\Users\XXX\Desktop\test.bin" "C:\DS5_WRK\Altera-SoCFPGA-HardwareLib-GNU\hwlib.axf"

ARM FromELF, 5.03 [Build 24]

Fatal error: Q9932E: Cannot obtain license for Fromelf (feature altera_fromelf5) with license version >= 5.0201301

The desired vendor daemon is down. Check the lmgrd log file, or try lmreread.

Feature: altera_fromelf5

Vendor:Host: eilic01

License path: C:\Users\XXX\AppData\Roaming\ARM\DS-5\licenses\license.lic;1800@eilic01;

FLEXnet Licensing error:-97,121

For further information, refer to the FLEXnet Licensing documentation, available at "www.flexerasoftware.com".

Finished: 1 information, 0 warning, 0 error and 1 fatal error messages.

The license.lic was created using the ARM serial number included in the box with the dev board (The path is set into the ARMLMD_LICENSE_FILE variable). The eilic01 server has licenses for Quartus and other Altera stuff, but no ARM licenses (This path is in LM_LICENSE_FILE).

In conclusion, DS-5 detects the license.lic file, I can compile and debug with DS-5, but I can't lunch fromelf. What's the problem? The license given by Altera with the dev board is limited? A version issue? Or maybe can I generate directly .bin files from DS-5?

Thank you.

1 Reply

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Hi,

    The DS-5 Altera edition toolkit does not include a license for the ARM compiler and tools. You'll need to use the GNU toolchain. To extract a binary from an .axf using GNU tools you can use the GNU objcopy:

    "arm-none-eabi-objcopy -v -O binary hwlib.axf hwlib.bin"

    Regards,

    Aldridge