Forum Discussion

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

Downloading ELF Process failed of Project

Good night everybody , I have problem of QuartusII 10.1sp1 .

My user chip is CycloneII EP2C35FC8 , when my sopc builder use

Pll、SDRAM、FLASH、MCU、JTAG , I can run as hardware of holld_world .

(Eclipse - Application and BSP from Template)

But , when I return sopc builder and add EnthModule、DMA(*2-RX、TX)、

onchip momery(4096bytes)、timer . And Auto-Assign Base Addres、IRQS.

Compilation after , I run as web_server_socket(rgmii)

(Eclipse - Application and BSP from Template) ,

but message tell me , downloading elf process failed .

So , I try again run as holld_world , but message still tell me

downloading elf process failed .

Would like to ask anyone encountered a similar problem : ( ?

27 Replies

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

    Dear Daixiwen

    My project of software at the \Myweb_server_bsp\drivers\src

    indeed have altera_avalon_tse.c , and inside file , indeed have

    support about 88E1111 message .

    But I still not understand , my led indicate denormal of reason .

    (LED_LINK1000 Right , LED_LIN100 Unright...)

    And about MDIO communication problem, I not understand your mean..
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Dear Daixiwen

    LED indicate is solve (normal : LED_RX、LED_DUPLEX、LED_LINK100)

    Because the problem from my pin planner of voltage config .

    (need set to 2.5V Level)

    But NiosII message still tell me

    error : mac group[0] - no phy connected!

    error : phy[0.0] - no phy connected!speed=100,duplex=full

    MDIO communication ... I will try : )
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Dear Daixiwen

    I can catch PHY!! indeed is hardware of MDIO problem .

    Now NiosII message tell me

    Your Enthenet MAC address is 00:07:ed:ff:3d:e5

    prepped 1 interface , initalzing...

    [tse_mac_init]

    INFO : TSE MAC 0 found at address 0x05002000

    INFO : PHY Marvell 88E1111 found at PHY address 0x10 of MAC Group[0]

    INFO : PHY[0.0] - Automatically mapped to tse_mac_device[0]

    INFO : PHY[0.0] - Restart Auto-Negotiation , checking PHY link...

    INFO : PHY[0.0] - Auto-Negotiation PASSED.

    MARVELL : Mode changed to RGMII/Modified MII to Copper mode

    MARVELL : Enable RGMII Timing Control

    MARVELL : PHY reset

    INFO : PHY[0.0] - Checking link...

    INFO : PHY[0.0] - Link not yet established , restart auto-negotiation...

    INFO : PHY[0.0] - Auto-Negotiation PASSED

    INFO : PHY[0.0] - Link established

    INFO : PHY[0.0] - Speed = 100 , Duplex = Full

    OK , x=0 , CMD_CONFIG=0x00000000

    MAC post-initalization : CMD_CONFIG=0x04000203

    [tse_sgdma_read_init] RX descriptor chain desc (1 depth) created

    mctest init called

    IP address of et1 : 0.0.0.0

    But...now I still not Catch IP ... and LED message indicate is not denormal.

    (LED_TX unright)

    I try of de2-115 board test web_server_socket , and function is normal.

    (LED_TX right) so ... I exclude Internet cable problem of possibility ... I

    think maybe is my TX_DATA Problem...
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    This line

    --- Quote Start ---

    IP address of et1 : 0.0.0.0

    --- Quote End ---

    shows that your board isn't getting an IP. Try to set a static IP address in the code yourself or use a DHCP server.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Dear Daixiwen

    I setting static IP address of file simple_socket_server.h

    but TX_LED just bright look and unright...and I try use super terminal ,

    but still not connect ... (I have set SSS_PORT)
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Do you see the correct address in the nios console? If not it means the Interniche Stack isn't picking up the IP address you set.

    You should try and use a sniffer such as Wireshark to see if the board is answering any ARP requests.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    I have solved the problem by locking the address of all the components in the NIOS II processer! This problem confused me several days. At last, I remove it!