6678使用Broadcom的5464 PHY芯片。做了两块电路板,1.1版本和1.2版本。
使用论坛下载的K1 STK中的GE,对其寄存器配置做了修改,运行正常:
CPU CLK=312.5*3(CPU是1.25GHZ,已经降频使用了),DDR3 CLK 1312.5MHz。
[C66xx_0] JTAG ID= 0x1009e02f. This is C6678/TCI6608 device, version variant = 1.
DEVSTAT= 0x0000c001. little endian, No boot or EMIF16(NOR FLASH) or UART boot, PLL configuration implies the input clock for core is 50MHz.
SmartReflex VID= 63, required core voltage= 1.104V.
Die ID= 0x0b01000e, 0x0404251b, 0x00000000, 0x648c0021
Device speed grade = 1250MHz.
Enable Exception handling…
Initialize DSP main clock = 312.50MHz/1×3 = 937MHz
Initialize PASS PLL clock = 100.00MHz/2×7 = 350.000MHz
Initialize DDR speed = 312.50MHzx/5×21 = 1312.500MTS
GE auto negotiation (master) two DSPs test (DSP0 -> DSP1)…
link PHY1 is NOT up
Transferred 3000 bytes with 7501363 cycles, throughput= 2Mbps.
number of descriptors in host queue DDR_HOST_SIZE0_FDQ (2058) changed from 512 to 518
0x82340041->0x82340061->0x82340081->0x823400a1->0x823400c1->0x823400e1->0x82340101->0x82340121->0x82340141->0x82340161->…
STATSA.RxGoodFrames =8
STATSA.RxOctets =12144
STATSA.Frame1024tUp =8
STATSA.NetOctets =12144
STATSB.TxGoodFrames =8
STATSB.TxOctets =12144
STATSB.Frame1024tUp =8
STATSB.NetOctets =12144
SGMII0 Link Partner Advertised Ability 10Mbps Half Duplex
SGMII1 Link Partner Advertised Ability 10Mbps Half Duplex
MDIO ALIVE flag: 0x0000000c
MDIO LINK flag: 0x0000000c
GE test complete.
received 46 bytes (last byte=0x0), packet type = 0x88cc, from srouce address 0xc85b76218609 to destination address 0x0180c200000e
received 46 bytes (last byte=0x0), packet type = 0x0806, from srouce address 0xc85b76218609 to destination address 0xffffffffffff
received 46 bytes (last byte=0x0), packet type = 0x88cc, from srouce address 0xc85b76218609 to destination address 0x0180c200000e
received 46 bytes (last byte=0x0), packet type = 0x0806, from srouce address 0xc85b76218609 to destination address 0xffffffffffff
received 46 bytes (last byte=0x0), packet type = 0x0800, from srouce address 0xc85b76218609 to destination address 0x01005e000016
received 304 bytes (last byte=0xa), packet type = 0x0800, from srouce address 0xc85b76218609 to destination address 0x01005e7ffffa
received 46 bytes (last byte=0x0), packet type = 0x88cc, from srouce address 0xc85b76218609 to destination address 0x0180c200000e
received 46 bytes (last byte=0x0), packet type = 0x0806, from srouce address 0xc85b76218609 to destination address 0xffffffffffff
received 46 bytes (last byte=0x0), packet type = 0x0800, from srouce address 0xc85b76218609 to destination address 0x01005e000016
再运行基于MCSDK的helloWorld改写的工程,DSP做服务器端,PC使用网络调试助手,直连向DSP发送数据。(DSP 跑NDK做服务器端有没有隐患?)
1.1电路板运行基本正常,PC端能重复发送数百MB数据。
1.2电路板运行异常,PC端无法ping通,无法connect。错误信息如下:
Shine:
请问1.1版本和1.2版本有什么不同?
Li Feng1:
回复 Shine:
网络方面没有区别。
我的程序基于helloWorld例程,helloWorld.c文件的NetworkOpen处做了一些修改如下,会不会有问题呢?
//
// NetworkOpen
//
// This function is called after the configuration has booted
//
static void NetworkOpen()
{// Create our local server//hHello = DaemonNew( SOCK_DGRAM, 0, 7, dtask_udp_hello,//OS_TASKPRINORM, OS_TASKSTKNORM, 0, 1 );// commented fl,2017-12-05
//hHello = DaemonNew( SOCK_STREAM, inet_addr(LocalIPAddr), ZxjDspNetPort, ZxjC0Tcp201712,//OS_TASKPRINORM, OS_TASKSTKNORM, 0, 1 );// added fl,2017-12-05// fixed IP and PORT 2017-12-28
hHello = TaskCreate(ZxjC0TcpTskFxn,"ZxjC0TcpTsk",OS_TASKPRINORM, 32768, 0, 0, 0 ); // from CCS3 ndk, 2017-12-28
}
Li Feng1:
回复 Shine:
您有基于helloWorld的TCP例程吗?能否贴一个,谢谢!
另外,6678的网口是否只有1能用,0不能用?
谢谢!
Li Feng1:
回复 Shine:
TCP通信中,DSP作为服务器端,没问题吧?
Li Feng1:
回复 Shine:
附件是我的helloWorld,基于MCSDK的,添加了PHY(BCM5464)配置,链接文件、头文件来自压缩包的common文件夹。请指点,谢谢!
CCS73WSGe20180205.rar