This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Problem running the MCSA (UIA) example on the EVMC6472



Hi,

I have been trying to run the MCSA example from the CCSV5, with the NDK ndk_2_20_02_22 and ndk_2_20_04_26, but I'm not able to get a working IP and being able to ping to the board, the problem is both with DHCP or even if I set the static IP.

I want to test the MCSA, but since the transport is over ethernet that's why I'm trying to get the ethernet working.

Another interesting thing is that I was expecting to get a link on the EMAC0, however it is working on EMAC1. The output that I'm getting is the following:

[C64XP_E] Start test
[C64XP_F] Start test
[C64XP_A] Start test
[C64XP_B] Start test
[C64XP_C] Start test
[C64XP_D] Start test
[C64XP_D] Starting BIOS
[C64XP_A] Starting BIOS
[C64XP_B] Starting BIOS
[C64XP_C] Starting BIOS
[C64XP_E] Starting BIOS
[C64XP_F] Starting BIOS
[C64XP_A] emac_init: core 0, port 0, total number of channels/MAC addresses: 1/1
[C64XP_A] MAC addresses configured for channel 0:
[C64XP_A] 00-24-BA-7A-AA-B0
[C64XP_A] emac_open port 0 successfully
[C64XP_A] Registration of the EMAC Successful, waiting for link up ..
[C64XP_A] Service Status: DHCPC    : Enabled  :          : 000
[C64XP_A] Service Status: DHCPC    : Enabled  : Running  : 000
[C64XP_A] Service Status: DHCPC    : Enabled  : Fault    : 002

The network is working fine since I was able to run some prebuilt demos from the BIOS MCSDK and the Out-of-the-box demo of the EVM, so I don´t think that is something related to my network.

Any ideas? Let me know if I need to provide extra information.

Thanks

  • Hi Miguel.

    Just to make sure, you used the message example that came with UIA. Did you modify it?

    Which version of UIA are you using?

    Todd

  • HI Todd,

    I used the example that I found on the CCSV5 project creation, as far as I know this one comes from the UIA examples. I didn´t modify it.

    The version of UIA is 1_00_01_17.

    Of course I´m loading the image in the 6 cores since the message example requires this.

    I already tried other demos that uses the NDK and they work, the only difference with this example is that they configure the NDK in the source code of the demo itself and not in the *.cfg file. The following are some lines of the *.cfg file related to the NDK:

    /* ================ EVM6472 Specific configuration ================ */
    /*
     * If you are using a different board, you need to change the following
     * lines. You'll need to add the Ethernet driver's libraries into the
     * project as specified by the NSP. For example, instead of using
     * the loadPackage below, you could have add the libraries instead.
     */
    /* Use pre-built Ethernet driver supplied with UIA.  */
    var ndkdrivers = xdc.loadPackage('ti.uia.examples.evm6472.ndkdrivers');

    /* Needed with for the EVM6472 Ethernet driver */
    Program.sectMap["emacComm"] = "SL2RAM";

    /* Needed since there is not enough LL2 on EVM6472 */
    Program.sectMap[".text"]  = "SL2RAM";

    /*
     */
    /*
     *  @(#) ti.uia.examples.evm6472; 2, 0, 0, 0,5; 6-15-2011 11:42:16; /db/vtree/library/trees/uia/uia.git/src/ null
     */

    Ip.gatewayIpAddr = null;
    Ip.mask = null;
    Ip.domainName = null;
    Ip.address = "";
    Ip.enableForwarding = false;
    Ip.DHCPOPT_IP_FORWARDING = false;
    Ip.DHCPOPT_TCP_DEFUALT_TTL = false;
    Ip.DHCPOPT_ETHERNET_ENCAPSULATION = false;
    Ip.DHCPOPT_SERVER_IDENTIFIER = false;
    Ip.DHCPOPT_REQUESTED_IP_ADDRESS = true;
    Ip.routeDownTime = 50;
    Ip.hostName = null;
    Ip.ifIdx = 1;
    BIOS.common$.gate = null;

    Thanks,

    Miguel

  • Todd,

    I updated the UIA to the version 1_00_02_22 and I'm still facing the same issue. No link or activity in the enthernet port. Any ideas?

    Thanks,

    Miguel

  • Hi Miguel,

    I verified that the out-of-the-box example worked. I'll try it with the additions you noted in a previous post.

    Todd

  • Hi Todd,

    One more thing I'm using the board rev 18-00065-04 of the EVMC6472, I also don't know if the EMAC drivers or other drivers are compatible with this board revision.

    Miguel

  • Miguel,

    In the UIA message.cfg file, a pre-built EMAC driver is used (look near the bottom of the file for the ndkdriver symbol). Can you remove this line and add in the libraries that you used for the NDK examples. You might need to remove the next couple lines in the .cfg also (note sure if your libraries need these constraints).

    Todd

  • Hi Todd,

    I manage to solve the issue by installing the POST on the EEPROM. It seems that the board didn't have it, so the EMAC was not properly configured in advanced. Now the demo is working fine.

    Can you clarify a bit about the POST and if it really necessary for a proper operation of the EVM?

    Thanks,

    Miguel