ADSP-SC584 Running LwIP INETD application on SC584-Ezkit. Not Enabling MAC

I am trying to run LwIP INETD application on ADSP-SC584 Ezkit board using ICE-1000 Emulator in Debug mode. 

I have referred this link https://ez.analog.com/dsp/sharc-processors/adsp-sc5xxadsp-215xx/w/documents/5044/lwip-on-sc584-ezkit

But during execution i am getting "Failed to enable EMAC" with error code 6 (ADI_ETHER_RESULT_PHYINIT_FAILED). 

On the same board I am able to run power on self test for Ethernet successfully with EMAC enabled. Can anyone please help or provide any suggestion on how to resolve the issue??

Thanks.

Parents
  • 0
    •  Analog Employees 
    on Jul 21, 2021 4:56 AM

    Hi,

    The most common cause of a failure in this function is the lack of DHCP - which all of the examples are configured to use, by default.

    In order to evaluate the examples, we recommend connecting the EZ-KIT to the same LAN as your PC. If LAN environment is not present then we recommend connecting both EZ-KIT and the PC to a router with DHCP capability. By default all examples use DHCP server to obtain the IP address.

    Can you please confirm whether your target is connected to a network with DHCP or manually configured static IP address. Are you connecting to a router, or directly to your PC using a crossover cable?

    Also error message, maybe your DHCP is not getting configured properly from the router. Use a static IP and please verify, otherwise please configure the router properly and also this error may occur when there is lack of DHCP on network

    You can refer the Readme file available in the below path to know more details about "Network connectivity".
    [installation]\lwIP_Stack-Rel2.6.0\lwip\ARM\examples\inetd

    The 'Failed to Initialise System' message indicates that something failed in the 'system init' function.

    Can you please try with the UDP example code without doing any modification from code sketch and please make sure with the same network configuration i.e, Connecting both EZ-KIT and the PC to a router with DHCP capability.

    You can also edit the network settings via the "lwIP" tab when you open the "System.svc" file. Highlight "Network 0" then click "Edit". If your network does not have DHCP, you will need to statically configure the connection.

    Also, you can find details about the ethernet driver, as well as the LwIP Add-In in the CCES help:
    CrossCore® Embedded Studio 2.x.x > System Run-Time Documentation > System Services and Device Drivers > ADSP-SC58x (Cortex-A Core) API Reference > Modules : Ethernet Driver Interface

    Please refer the below link which might be helpful to you.
    ez.analog.com/.../54537

    Regards,
    Santhakumari.K

  • Hi Santhakumari,

    Thanks for the reply. I have tried all possibilities including modifying system.svc file with DHCP and also Manual configuration. I have connected to router an also direct connection with laptop. As per the link you have shared, I have commented out the required lines in code and tried. Still I'm facing same issue. 

    https://ez.analog.com/dsp/blackfin-processors/bf60x/f/q-a/59847/lwip-fileserver-project-error/54542#54542

    In the above link they are mentioning that "every box between A03 and A23 under SMC0" in System.svc needs to be checked. But in my case A1,A2,A5,A6 are enabled. Others are showing errors such as "SMC0 [Static Memory Controller]-A23 (mux: 3) has a mux group conflict with EMAC0 [Ethernet MAC]-MDIO (mux: 0)".  Does this affect enabling EMAC or how to correct this issue?

    What are the peripherals to be selected in Pin-Multiplexing under System.svc option in order to enable EMAC?

  • 0
    •  Analog Employees 
    on Jul 26, 2021 4:37 AM in reply to adarshbv

    Hi,

    Please note that, pins A03-A04 and A07-A24 are already configured/enabled for EMAC0[Ethernet mac] in pin multiplexing for ADSP-sc589 Inetd example project. Please refer the attached screenshot "pin_multiplexing.JPG"

    Therefore, you are seen message that specific pins "has a mux group conflict with EMAC0" when you are trying to enable under SMC0.

    Also, We are unable to simulate your issue here with example project on ADSP-SC584 ez-kit.

    We could modify the current Inetd ADSP-SC589 Ez-Kit example for the ADSP-SC584 Ez-Kit and run successfully on ADSP-SC584 ez-kit by following the FAQ that you have mentioned in "LWIP on SC584 EzKit". Please refer the attached screenshot "output.jpg"

    Below are the steps that we have followed.Could you please ensure whether you have followed the same.

    1.We connected the EZ-KIT to the same LAN as our PC.
    2.Imported Inetd example in CCES using browse examples (select help->browse examples select ADSP-SC589 then browse for INETD example).
    3.Replaced softswitch_cfg.c in workspace with the attached softswitch_cfg.c provided in FAQ.
    4.Open system.svc and edited Network 0 in lwip application configuration as per requirement.
    5.Build project for the SC584 by right clicking on the project and changing processor to ADSP-SC584.
    6.Connected session and Start executing the ARM application.

    We recommend to refer both the LWIP User's Guide liked below and readme file for example for more details on running example.
    www.analog.com/.../lwip_4_cces_man_rev.1.0.1.pdf

    If you are still facing issues, could you please share us the below details.

    1. Please describe your test setup - connection between PC to board, board to network configuration.
    2. If you have an access to any other ez-kit, can you please try on that and let us know how you gets on.
    3. Also, please confirm whether you are facing same behavior when trying on other PC's too.

    Regards,
    Santhakumari.K

  • Hi,

    Thanks for the feedback. Based on your feedback I tried and it is working now. Previously I had used LwIP2.4 with CCES 2.5.0. Now I have installed latest version of LwIP 2.6 with CCES 2.9.2 and followed the steps in FAQ. I have connected SC584 to a different network and ran the application. Now board is connecting to the network and EMAC is also enabled.

  • 0
    •  Analog Employees 
    on Jul 26, 2021 9:06 AM in reply to adarshbv

    Hello,

    Happy to know that the issue got resolved.

    Best Regards,
    Santhakumari.K

Reply Children
No Data