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.

AM572x NIMU Basic example ping issue

Hi,

I am working with evmAM572x. I compiled NIMU_BasicExample_evmAM572x_armExampleproject the out file is generated. I boot this app through SD card and configure IP address 192.168.1.2. as mentioned in training slides http://software-dl.ti.com/public/hpmp/software/app_dev_procsdk_rtos/index.html.

Connected cross cable from target to PC host(ip set to 192.168.1.144). But when i tried to ping it from PC command prompt it is giving "destination host unreachable"  .Any other setting is required to ping it from host PC?

  • The RTOS experts have been notified. They will respond here.
  • Anjana,

    Which Processor SDK release are you working with? If you connect a JTAG emulator and run the program from CCS, what does the console output look like?

    And is your EVMMACAddrGet() function different with the attached one?

    /* ========================================================================== */ 		
    /*                          Function Definitions                              */ 		
    /* ========================================================================== */ 		
    		
    /** 		
     * \brief   This function returns the MAC address for the EVM 		
     * 		
     * \param   addrIdx    the MAC address index. 		
     * \param   macAddr    the Pointer where the MAC address shall be stored 		
     *     'addrIdx' can be either 1 or 2 		
     * 		
     * \return  0 on sucess, -1 on error. 		
    */ 		
    		
    int32_t EVMMACAddrGet(uint32_t addrIdx, uint8_t *macAddr) 		
    { 		
        int32_t retVal = 0; 		
        switch(addrIdx) 		
        { 		
            case 1U: 		
                macAddr[0U] =  (((CSL_control_coreRegs *) CSL_MPU_CTRL_MODULE_CORE_CORE_REGISTERS_REGS)->MAC_ID_SW_1 		
                          >> 16U) & 0xFFU; 		
                macAddr[1U] =  (((CSL_control_coreRegs *) CSL_MPU_CTRL_MODULE_CORE_CORE_REGISTERS_REGS)->MAC_ID_SW_1 		
                          >> 8U) & 0xFFU; 		
                macAddr[2U] =  (((CSL_control_coreRegs *) CSL_MPU_CTRL_MODULE_CORE_CORE_REGISTERS_REGS)->MAC_ID_SW_1) 		
                          & 0xFFU; 		
                macAddr[3U] =  (((CSL_control_coreRegs *) CSL_MPU_CTRL_MODULE_CORE_CORE_REGISTERS_REGS)->MAC_ID_SW_0 		
                          >> 16U) & 0xFFU; 		
                macAddr[4U] =  (((CSL_control_coreRegs *) CSL_MPU_CTRL_MODULE_CORE_CORE_REGISTERS_REGS)->MAC_ID_SW_0 		
                          >> 8U) & 0xFFU; 		
                macAddr[5U] =  (((CSL_control_coreRegs *) CSL_MPU_CTRL_MODULE_CORE_CORE_REGISTERS_REGS)->MAC_ID_SW_0) 		
                          & 0xFF; 		
            break; 		
    		
            case 2U: 		
                macAddr[0U] =  (((CSL_control_coreRegs *) CSL_MPU_CTRL_MODULE_CORE_CORE_REGISTERS_REGS)->MAC_ID_SW_3 		
                          >> 16U) & 0xFFU; 		
                macAddr[1U] =  (((CSL_control_coreRegs *) CSL_MPU_CTRL_MODULE_CORE_CORE_REGISTERS_REGS)->MAC_ID_SW_3 		
                          >> 8U) & 0xFFU; 		
                macAddr[2U] =  (((CSL_control_coreRegs *) CSL_MPU_CTRL_MODULE_CORE_CORE_REGISTERS_REGS)->MAC_ID_SW_3) 		
                          & 0xFFU; 		
                macAddr[3U] =  (((CSL_control_coreRegs *) CSL_MPU_CTRL_MODULE_CORE_CORE_REGISTERS_REGS)->MAC_ID_SW_2 		
                          >> 16U) & 0xFFU; 		
                macAddr[4U] =  (((CSL_control_coreRegs *) CSL_MPU_CTRL_MODULE_CORE_CORE_REGISTERS_REGS)->MAC_ID_SW_2 		
                          >> 8U) & 0xFFU; 		
                macAddr[5U] =  (((CSL_control_coreRegs *) CSL_MPU_CTRL_MODULE_CORE_CORE_REGISTERS_REGS)->MAC_ID_SW_2) 		
                          & 0xFF; 		
                break; 		
    		
            default: 		
                retVal = -1; 		
                break; 		
        } 		
        return retVal; 		
    } 		
    

    Regards,

    Garrett

  • i am working woth processor_sdk_rtos_am57xx_3_00_00_04 installed by ti-processor-sdk-rtos-am57xx-evm-03.00.00.04-Windows-x86-Install. i am not using JTAG connector, as i donot have. Programming the target by using or booting with SDcard. The serial msg received on putty is

    *****************************************************************************************************************

    ▒**** PDK SBL ****
    **** Copying Application Image to DDR ****

    SD Boot - file open completed successfully
    Jumping to MPU CPU0 Application...


    SYS/BIOS Ethernet/IP (CPSW) Sample application

    ********************************************************************************************************************************

    Yes the function EVMMACAddrGet() is different as shown below. from where this function is called?

    /**
    * \brief This function returns the MAC address for the EVM
    *
    * \param addrIdx the MAC address index.
    * \param macAddr the Pointer where the MAC address shall be stored
    * 'addrIdx' can be either 0 or 1
    *
    * \return None.
    */
    void EVMMACAddrGet(uint32_t addrIdx, uint8_t *macAddr)
    {
    macAddr[0U] = (((CSL_control_coreRegs *) CSL_MPU_CTRL_MODULE_CORE_CORE_REGISTERS_REGS)->MAC_ID_SW_0
    >> 16U) & 0xFFU;
    macAddr[1U] = (((CSL_control_coreRegs *) CSL_MPU_CTRL_MODULE_CORE_CORE_REGISTERS_REGS)->MAC_ID_SW_0
    >> 8U) & 0xFFU;
    macAddr[2U] = (((CSL_control_coreRegs *) CSL_MPU_CTRL_MODULE_CORE_CORE_REGISTERS_REGS)->MAC_ID_SW_0)
    & 0xFF;
    macAddr[3U] = (((CSL_control_coreRegs *) CSL_MPU_CTRL_MODULE_CORE_CORE_REGISTERS_REGS)->MAC_ID_SW_1
    >> 16U) & 0xFFU;
    macAddr[4U] = (((CSL_control_coreRegs *) CSL_MPU_CTRL_MODULE_CORE_CORE_REGISTERS_REGS)->MAC_ID_SW_1
    >> 8U) & 0xFFU;
    macAddr[5U] = (((CSL_control_coreRegs *) CSL_MPU_CTRL_MODULE_CORE_CORE_REGISTERS_REGS)->MAC_ID_SW_1)
    & 0xFFU;
    }

    Thanks,

     Anjana Pathak

  • Hi Anjana,

    The function EVMMACAddrGet() is called by CPSW3G_getMAC() in /transport/ndk/nimu/src/v4/cpsw_nimu_eth.c, have you tried the one I sent?

    Regards,
    Garrett
  • Thanks Garret,
    I tried and it works.
  • I want to send some data to host PC through ethernet at the rate of 1Gbps. will you please tell me the flow of sending data and which file i need to change or modify. Is it possible by using EMAC_BasicExample_evmAM572x_armBiosExampleProject. Please help me out as i am new to this SW architechture.

    Thanks,
    Anjana Pathak