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.

Question about emac loopback on TMS320C6455

 Hi :

    We find attached the .zip file for emac 0.4 latest loopback examples as follows:

,/cfs-file/__key/communityserver-discussions-components-files/791/3414.c6455_5F00_emac_2D00_0.4_2D00_latest.zip

and  use it as legacy ccsv3.3 pjt in ccsv5.3 ,but we have encountered some issues.

we use Loopback at the PHY device(PHY_LOOPBACK =1, LOCAL_LOOPBACK =0),after "rebuild project",it has some warnings as follows:

But we have checked "Include options" and "File search path " they are all OK.  the "Include options":

the "File search path " :

     when "run",it will hung in "while( !LinkStatus && LocalTicks < 100)", the value of "LinkStatus" and "LocalTicks"are always "0".

So we set breakpoint in Interrupt function“TimeTick(void)”,we found that the Interrupt was not be triggered at all.

It seems that all the Hw interrupts were not be triggered at all. That is to say the

"C64_enableIER( EMAC_INT_FLAG );"

"SWI_enable();"

"OUREMAC_enter()"

and so on not working??

what is wrong ?what can we do ?

Hope your help!!!

Thanks!!!

  • Hi,

    Thanks for your post.

    This example software is a standalone example program showing how to  program EMAC on C6455.

    Basically, the shared emac loopback example was a working example and it is tested completey to operate for desired functionalities.  Kindly check the Readme .txt file at the path below:

    ~\ti\c6455_emac-0.4-latest\Readme

    Note: When using the EMAC module, it is not necessary to interface directly with the MDIO module, since EMAC calls MDIO directly. The MDIO module can be used independently if the EMAC module is not required.

    I think, you could use the example as eclipse based .ccs project through importing first as "Import Legacy CCSv3.3 Project" and convert it to .ccs eclipse based project and after importing it this way, a new folder named "c6455_emac_loopback" will be created in the same project path at "~ti\c6455_emac-0.4-latest\c6455_emac_loopback\ .

    After converting it into eclipse based .ccs project, please check the .ccsproject file path at the below project path:

    ~\ti\c6455_emac-0.4-latest\c6455_emac_loopback\c6455_emac_loopback\.ccsproject

    Then, import the above .ccsproject in CCSv5.3 IDE through "Import Existing CCS Eclipse Project" option available in Project menu and later, clean and rebuild the project which would free all your build errors. After building the project, try launching CCS debugger and keep breakpoints at desired places to check whether the interrupts are being triggered or not.

    Thanks & regards,

    Sivaraj K

    -------------------------------------------------------------------------------------------------------

    Please click the Verify Answer button on this post if it answers your question.

    -------------------------------------------------------------------------------------------------------

  • Hi,

    Also, try whether other examples like emac send, emac receive, emac echo, emac benchmark works on c6455 to narrow down or to confirm whether the issue is not under the scope of software code.

    Please check whether all the include paths, library file search paths are included properly on the project build properties to ensure smooth operation of emac loopback example on c6455.

    Thanks & regards,

    Sivaraj K

    -------------------------------------------------------------------------------------------------------

    Please click the Verify Answer button on this post if it answers your question.

    -------------------------------------------------------------------------------------------------------