Forum Discussion

Ranjithkumar828's avatar
Ranjithkumar828
Icon for New Contributor rankNew Contributor
3 years ago
Solved

Cyclone V SoC Ethernet speed issue bare metal driver

Hi,

We have developed an ethernet driver for Cyclone V SoC in bare-metal programming. When we are transmitting more than 80 bytes per packet in our customized board it is getting failed. But the board can receive up to 1200 bytes in a packet.

We have used the UDP protocol.

I have tried pinging the IP with 100bytes ethernet getting unresponsive.

we have taken the Arria10 driver as a reference and LWIP 2.0.3 as IP stack.

We have KSZ9021RN PHY IC and configured as 10/100 Ethernet speed.

Checked the tx and RX descriptor's size and packet length and found them adequate for 1024 bytes. I have attached the code.

Seeking help from the experts.

Kindly do the needful.

  • Hi Aik Eu,

    The above issue is soved. Some macros related to dma configuration are commanded in code. After removing the command it is solved.

    Thanks.

8 Replies

  • aikeu's avatar
    aikeu
    Icon for Regular Contributor rankRegular Contributor

    Hi Ranjithkumar828,


    I will try to consult and see if there is any information which might help to answer your question.


    Thanks.

    Regards,

    Aik Eu


  • Hi Aik Eu,

    The above issue is soved. Some macros related to dma configuration are commanded in code. After removing the command it is solved.

    Thanks.

    • GOMEZ_IT's avatar
      GOMEZ_IT
      Icon for Occasional Contributor rankOccasional Contributor

      Hi Ranjithkumar828..
      Could you share the driver you created to send/receive UDP packets from the ethernet port?
      I'm trying to do the same thing you did but with a DE10 nano board, for now without success, because I can't find a baremetal driver on the internet that allows me to use the ethernet port to send simple raw packets.
      Would you be willing to give me some help?
      Thank you,
      Luca.

  • Hi Aikeu,

    As i sent mail, When we trying to boot from QSPI few interface like Etherenet and OLED (SPI) is not working. Please check that and provide solution for the same.

  • aikeu's avatar
    aikeu
    Icon for Regular Contributor rankRegular Contributor

    Hi Ranjithkumar828,


    I think you will require to create another case related to the QSPI booting Ethernet and OLED function was not working for tracking purpose.


    Thanks.

    Regards,

    Aik Eu


  • aikeu's avatar
    aikeu
    Icon for Regular Contributor rankRegular Contributor

    Hi Ranjithkumar828,


    Try to enable one ethernet or OLED function at a time for your system to boot up. This might help to see if those are related to timing issue due to initialization when perform QSPI boot up.


    Thanks.

    Regards,

    Aik Eu


  • aikeu's avatar
    aikeu
    Icon for Regular Contributor rankRegular Contributor

    Hi Ranjithkumar828,


    I am closing this thread for now. Do consider open a new thread for the to other issues that you have mentioned.


    Thanks.

    Regards,

    Aik Eu