您的位置: OpenADSP社区论坛 -> Blackfin专区 -> 新手上路 -> BF51X技术支持专区 -> 关于BF518网口自环例程的问题
本帖共有2422个阅读者
发表帖子 发表投票 回复主题
关于BF518网口自环例程的问题
xiaohaotile(论坛新手)
xiaohaotile
头衔:社区公民
帮派:无帮无派
帖数:26
金钱:337
积分:37
注册时间:2012/10/30
楼主信息 | 留言 | Email | 主页 | 编辑 | 管理 | 离线
关于BF518网口自环例程的问题
执行BF518自环例程时需要将外部的PHY的收发线连一起吗?PHY用的是DP83848。

这家伙很懒,什么也没有留下!
等级:论坛新手 参考IP地址:*.*.*.*
2013/4/19 12:22:43
尊贵身份标志
andy(论坛版主)
andy
头衔:社区公民
帮派:无帮无派
帖数:2287
金钱:11132
积分:2263
注册时间:2011/6/8
1信息 | 留言 | Email | 主页 | 编辑 | 管理 | 离线
网卡通常loopback模式有两种,一种是MAC层的循环测试,一种是PHY层的。
MAC层是芯片内部数据测试,不需要连接线。
PHY层的是将数据通过网口TX+和TX-将数据发送出去,再通过RX+和RX-将数据接收回来,因此需要将接口的TX+和RX+连接在一起,TX-和RX-连接在一起。

这家伙很懒,什么也没有留下!
等级:论坛版主 参考IP地址:*.*.*.*
2013/4/19 14:03:46
xiaohaotile(论坛新手)
xiaohaotile
头衔:社区公民
帮派:无帮无派
帖数:26
金钱:337
积分:37
注册时间:2012/10/30
2信息 | 留言 | Email | 主页 | 编辑 | 管理 | 离线
MAC层得循环测试也是BF518将数据送入DP83848中再取出来吧?我看DP83848有一个loopback寄存器,可以开始loopback功能,这个应该是MAC层的测试吧?

这家伙很懒,什么也没有留下!
等级:论坛新手 参考IP地址:*.*.*.*
2013/4/19 14:17:01
尊贵身份标志
andy(论坛版主)
andy
头衔:社区公民
帮派:无帮无派
帖数:2287
金钱:11132
积分:2263
注册时间:2011/6/8
3信息 | 留言 | Email | 主页 | 编辑 | 管理 | 离线
BF518集成了网卡的MAC,
DP83848是一个网卡的PHY芯片。你说MAC层测试会在哪边?

这家伙很懒,什么也没有留下!
等级:论坛版主 参考IP地址:*.*.*.*
2013/4/19 23:32:33
xiaohaotile(论坛新手)
xiaohaotile
头衔:社区公民
帮派:无帮无派
帖数:26
金钱:337
积分:37
注册时间:2012/10/30
4信息 | 留言 | Email | 主页 | 编辑 | 管理 | 离线
是啊,不会是在BF518内部吧?安装目录下的example文件夹下的自检程序中有个Test_enther的网络测试程序是MAC层的还是PHY层的?

这家伙很懒,什么也没有留下!
等级:论坛新手 参考IP地址:*.*.*.*
2013/4/20 18:50:36
尊贵身份标志
andy(论坛版主)
andy
头衔:社区公民
帮派:无帮无派
帖数:2287
金钱:11132
积分:2263
注册时间:2011/6/8
5信息 | 留言 | Email | 主页 | 编辑 | 管理 | 离线
查无此代码。官方网站的代码都会有readme说明的。

这家伙很懒,什么也没有留下!
等级:论坛版主 参考IP地址:*.*.*.*
2013/4/20 20:40:29
xiaohaotile(论坛新手)
xiaohaotile
头衔:社区公民
帮派:无帮无派
帖数:26
金钱:337
积分:37
注册时间:2012/10/30
6信息 | 留言 | Email | 主页 | 编辑 | 管理 | 离线

Analog Devices\VisualDSP 5.0\Blackfin\Examples\ADSP-BF518F EZ-Board\Power_On_Self_Test

这个目录下的自检网络部分。


这家伙很懒,什么也没有留下!
等级:论坛新手 参考IP地址:*.*.*.*
2013/4/21 12:26:22
尊贵身份标志
andy(论坛版主)
andy
头衔:社区公民
帮派:无帮无派
帖数:2287
金钱:11132
积分:2263
注册时间:2011/6/8
7信息 | 留言 | Email | 主页 | 编辑 | 管理 | 离线
原代码自带readme描述:

Standard Loop Tests

1.  Place ethernet loopback connectors in J14 and J15 (PORT1 and PORT2)
    for a rev 0.2 PCB or in J14 for a rev 1.0 PCB.
2.  Turn SW6.1 ON for a rev 0.2 PCB.
3.  Turn SW10.4 ON.
4.  While holding down PB1, power up the EZ-Board.
5.  When LED1 lights up, PB1 may be released.  
    At this point, POST has entered the standard loop test.  
    Note: This test can also be chosen by entering
    1-1-1-1-1 after powering up when the standard pattern is blinking.
6.  The first test is processor version: 0-0-1.  
    If this fails (it is only considered a warning), continue with
    the rest of the tests, but alert Engineering of this warning.
7.  The next test is pushbuttons and LEDs (PBLED): 0-1-0.  
    Press and release PB1 and PB2 one at a time.  
    You should see the LEDs toggling with each press.
8.  At this point, the tests will continue without requiring user input.
    When the last test is reached, it will loop back to this point
    so that tests will continue to run without any further user input.
9.  If a test fails, POST will stop at that point and blink the
    LED pattern for the failing test.  Refer to the table in main.c
    for LED patterns.
10. When you have finished the standard loop test, you may power off
    the EZ-Board.
11. Turn SW6.1 OFF for a rev 0.2 PCB.
12. Turn SW10.4 OFF.


这家伙很懒,什么也没有留下!
等级:论坛版主 参考IP地址:*.*.*.*
2013/4/21 19:15:05
xiaohaotile(论坛新手)
xiaohaotile
头衔:社区公民
帮派:无帮无派
帖数:26
金钱:337
积分:37
注册时间:2012/10/30
8信息 | 留言 | Email | 主页 | 编辑 | 管理 | 离线
其中的网络测试程序是MAC层的还是PHY层的?

这家伙很懒,什么也没有留下!
等级:论坛新手 参考IP地址:*.*.*.*
2013/4/21 21:40:35
尊贵身份标志
andy(论坛版主)
andy
头衔:社区公民
帮派:无帮无派
帖数:2287
金钱:11132
积分:2263
注册时间:2011/6/8
9信息 | 留言 | Email | 主页 | 编辑 | 管理 | 离线
PHY

这家伙很懒,什么也没有留下!
等级:论坛版主 参考IP地址:*.*.*.*
2013/4/24 15:39:46
16
1
1/2
Powered by OpenADSP Copyright © 2010 www.Openadsp.com. All rights reserved.154306 Call, 1 Queries, Processed in 0.031250 second(s),