Post Go back to editing

lwip problem-ping not working /BF527

Hi.

We have a hardware with ethernet lan 8700i  with PHYADD = 1f and with full duplex. we changed Dev->phyadd = 0x1f and full duplex = true in liblan8700BF527

using following program. after run program shows link established. but ping and connect is not happening. in our hardware we are using BF527 processor.

Target is able to send ARP packets.We use the program below which works fine in adsp bf527 ez kit.

C:\Program Files\Analog Devices\VisualDSP 5.0\Blackfin\Examples\ADSP-BF527 EZ-KIT Lite\LAN\Host\FILESERVER

can u plz suggest us the problem why ping is not happening.We tried TCPIPTRACE,INETD programs also ,and ping fails but link is established.

We have reserved bank3 (LAST BANK)flash for FPGA.

Thanks...........

  • I think you are not doing something correctly. Ideally your config is taken from something like below (see user_net_config_info[]). It is taken as global data while building (loading) directly, you do not need to do anything in code. LwIP attaches the config data after initialization and start_stack().

  • Hi Jia,

    By default the IP address is obtained via DHCP, and is then stored in LwIPs "netif" structure. The address you are seeing the IP address in memory will be where the netif structure is being placed.

    Regards,

    Craig.

  • Hi Craig,

         As you say, is the netif structure  placed in the memory 0xff903080 in my program? How the configured IP in TCP/IP Configuration Plugin become the IP address of blackfin , rather than the one that  is setted in the the memory 0xff903080?

    Regards,

    Jia

  • Hi Prasanth,

    I think I'm not doing something correctly too, but I believe the mistake doesn't come form my IP config.Where the mistake may happen? in Project Option? or somewhere else?

  • Hi Jia,

    When you are using the TCP/IP Configuration Manager, it should be the case that the configuration inside the netif structure is taken from the user_net_config_info structure based on the generated tcp files.

    Without looking at your project, I could only recommend stepping through the Init_stack function to determine when/why/how the ip address is being set to the incorrect value.

    If you prefer not to post your code publicly, I would recommend contacting private support through the link below:

    http://www.analog.com/support

    If you do contact private support, please include a link to this thread.

    Regards,

    Craig.

  • Hi Craig,

       

         Thanks for your information!!

         I have solved the problem. Because the file tcpipbf537.dlb was changed in other case by my former colleague.Just recover it, my program work fine.

        These patience replies from you and Prasanth help me work out the issue. Thank you very much!

       

       

    Regards,

     

    Jia