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.

RTOS/AM4376: NIMU basic example

Part Number: AM4376

Tool/software: TI-RTOS

Hi,

I'm trying to get any network example to work on the EVM. But no luck.

I Imported the NUMU_BasicExample_evmam437x to CCS V7, and it compiled with no issues. However when I try to run it, I get the following output:

SetPhyMode:000021e1 Auto:1, FD10:64, HD10:32, FD100:256, HD100:128, FD1000:8192 LPBK:0

SYS/BIOS Ethernet/IP (CPSW) Sample application, EVM IP address: 192.168.2.40
ENETPHY_FindingState: Timed Out looking for a Phy!
ENETPHY_FindingState: Timed Out looking for a Phy!
ENETPHY_FindingState: Timed Out looking for a Phy!
ENETPHY_FindingState: Timed Out looking for a Phy!

Is there anything else I should do to make it work?

Is there any practical documentation or tutorial to setup RTOS network on the am437x?

Thanks!

shai

  • The RTOS team have been notified. They will respond here.
  • Shai,

    Are you able to ping the board with IP address 192.168.2.40?
    Are you using the latest Processor SDK 4.2?
    Which Ethernet port is connected? And was the board connected to a router or PC NIC?
    There is no dedicated document for the RTOS network setup on AM437x, but the EVM quick start guide www.ti.com/lit/ml/sprw256/sprw256.pdf may help isolate any issue with your EVM.

    Regards,
    Garrett
  • Hi Garrett,

    Thanks for your quick response!

    I'm using SDK ver: 04.02.00.09
    tried connecting both ports to a router, but got no ping. The ip is static and within the router network of 192.168.2.xxx
    Single stepping the program, it seems it is stuck on:
    enet_phy.c:
    if( CSL_MDIO_isPhyAlive((CSL_mdioHandle) ((ENETPHY_DEVICE *) hPhyDev)->miibase, i))
    it never return true. value of hMdioRegs->ALIVE_REG is 0x30 (address of hMdioRegs is 0x4A101000)

    for some reason this polls only phy address 0 (first port). Can it scan the other port as well?

    I will take a look at the quick start guide.
    BTW, when I tried running Linux on the EVM, the network worked fine, so the HW is probably ok.

    Thanks again,
    shai
  • Hi Again,

    OK, I think I know whats wrong, My board is the sk and not the evm. Will try the correct example and let you know. sorry for that.

    shai
  • And Hi yet again.

    Yes it was all my fault, I thought that I was working with the EVM but actually it was the SK, now the examples seems to work fine.
    Thanks for all the help - the link to the quick guide doc you gave made me realize I'm using the wrong board.
    Sorry for everything.

    shai