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...........

Parents
  • Hi Prasanth,
    Thanks for your response!

    It's not EZ_KIT. I run my application program in my hardware with ethernet lan 8787.  I configure the IP address ,Subnet and Gateway by using the TCP/IP Configuration Manager. But the IP-address printed on VDSP console isn't the configured one, when run the follow  segment code in lwip_sysboot_threadtype.c.
        memset(ip,0,sizeof(ip));

          if(gethostaddr(0,ip))

          {

           printf("IP ADDRESS: %s\n",ip);

          }

    By setting breakpoint,I find that user_net_config_info.ipaddr,netmask and gateway haved be changed after  the call to "init_stack()". why?
    I believe that the IP address to PC is setted correctly.

    Regards

    Jia

Reply
  • Hi Prasanth,
    Thanks for your response!

    It's not EZ_KIT. I run my application program in my hardware with ethernet lan 8787.  I configure the IP address ,Subnet and Gateway by using the TCP/IP Configuration Manager. But the IP-address printed on VDSP console isn't the configured one, when run the follow  segment code in lwip_sysboot_threadtype.c.
        memset(ip,0,sizeof(ip));

          if(gethostaddr(0,ip))

          {

           printf("IP ADDRESS: %s\n",ip);

          }

    By setting breakpoint,I find that user_net_config_info.ipaddr,netmask and gateway haved be changed after  the call to "init_stack()". why?
    I believe that the IP address to PC is setted correctly.

    Regards

    Jia

Children
No Data