Forum Discussion

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

error when Debag Cycline M SoC in DS-5

Hello.

I have downloaded SoCEDSSetup-13.1.0.162 and installed the program DS-5. I imported project Altera-SoCFPGA-HelloWorld-Baremetal-GNU, as mentioned in the user manual Altera SoC Embedded Design Suite. But I have error:

ERROR(CMD685-IMG54): # in C:\Altera_DS_Workspace\Altera-SoCFPGA-HelloWorld-Baremetal-GNU\semihost_setup.ds:15 while executing: file $sdir/hello.axf

! Failed to load symbols for "hello.axf"

! Failed to demand load DWARF debugging information: section .debug_info, offset 0xb

ERROR(CMD656): The script C:\Altera_DS_Workspace\Altera-SoCFPGA-HelloWorld-Baremetal-GNU\semihost_setup.ds failed to complete due to an error during execution of the script

What can I do with that?

3 Replies

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

    Please, edit post header to correct "Debag" to "Debug" and "Cycline" to "Cyclone" ! :)

    Try to relocate project to other location, clean/rebuild, delete all and reimport.

    If errors retry, include here zip with all contents of your project folder. We run on our kits.

    I fast import, compile and run this HelloWorld-Baremetal -- no problem.

    It's your kit board "Altera Cyclone V SoC" ? Char "M" in header -- may be microcontroller, not Cortex-A9 ?
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    I download archive and try debug/compile -- may be wrong your compiler arm-none-eabi-gcc.exe or not compatible.

    He calls from Makefile, my is unique, lie in C:/Altera/13.1/embedded/host_tools/mentor/gnu/arm/baremetal/bin and have size 275456 bytes.

    Your hwlib.axf is not downloaded in DS-5, however my hwlib.axf runs OK in your project directory.

    I compile hwlib.axf from your hwlib.o -- he not run, recompile hwlib.o from hwlib.c and hwlib.axf from hwlib.o -- runs OK.

    Thus, bad is hwlib.o, what maked through arm-none-eabi-gcc.exe.

    In ARMCC-mode is used other compiler and toolchain.

    Try reinstall SoC EDS, especially if many copyes is installed or was many installations.