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.

DM6437 EMAC LOOPBACK 例程问题



1、前一段时间在TI的dm6437 EVM上跑附带的EMAC loopback 例程,显示通过了。这几天再跑这个程序,就不行了,输出框显示FAIL... error code 12...quitting。这个是问啥呢?

2、该例程中,emac_int函数中,通过MDIO_USERACCESS0设置PHY芯片参数时,相关参数如下:

         phy_ctrl_reg = 0                                                       
             | ( 0 << 15 )                       // Reset                       
             | ( 0 << 14 )                       // Loopback                    
             | ( 0 << 13 )                       // Speed Selection             
             | ( 0 << 12 )                       // Auto-Negotiation Enable     
             | ( 0 << 11 )                       // Power-Down                  
             | ( 0 << 10 )                       // Isolate                     
             | ( 0 << 9 )                        // Restart Auto-Negotiation    
             | ( 0 << 8 )                        // Duplex Mode                 
             | ( 0 << 7 )                        // Collision Test              
             | ( 0 << 6 );                       // Speed Selection

为何将loopback标志位(14位)设置为设为0,但实际上在PHY芯片KS8001L的数据手册中,14位为1时表示选择loopback模式,为0时关闭该模式。EAMC LOOPBACK例程中如此设置不是关闭了loopback模式吗?