ti专家,您好,我们现在正在做C6670与marvell 88e6122交换芯片的一个项目,正在调试网口,目前处于阻塞状态,想运行mcsdk里的6670 ndk的hellowrold例程,并且设置成静态IP地址,例程运行后,pc侧ping不通我设定的ip地址,协议栈启动之前对sgmii与phy芯片进行了设置,并且已经查看到已经sgmii与phy的状态已经linkup上了。使用k1_stk_v1.1中GE例程,进行外部回环测试,没有问题。(我们的板卡跟EVM开发板的系统时钟、SGMII参考时钟不同,对两个例程分别做了相应修改,EVM系统时钟为122.88M,SGMII为250M,我们的板卡系统时钟为153.6,SGMII时钟为156.25)
以下是gel文件初始化的过程:
C66xx_0: GEL Output: SYSCLK2 = 327.6667 MHz, SYSCLK5 = 196.6 MHz.
C66xx_0: GEL Output: SYSCLK8 = 15.35938 MHz.
C66xx_0: GEL Output: PLL1 Setup… Done.
C66xx_0: GEL Output: Power on all PSC modules and DSP domains…
C66xx_0: GEL Output: Security Accelerator disabled!
C66xx_0: GEL Output: Power on all PSC modules and DSP domains… Done.
C66xx_0: GEL Output: PA PLL (PLL3) Setup …
C66xx_0: GEL Output: PA PLL Setup… Done.
C66xx_0: GEL Output: DDR3 PLL (PLL2) Setup …
C66xx_0: GEL Output: DDR3 PLL Setup… Done.
C66xx_0: GEL Output: DDR begin (1333 auto)
C66xx_0: 2: XMC setup complete.
C66xx_0: GEL Output:
DDR3 initialization is complete.
C66xx_0: GEL Output: DDR done
C66xx_0: GEL Output: DDR3 memory test… Started
C66xx_0: GEL Output: DDR3 memory test… Passed
C66xx_0: GEL Output: PLL and DDR Initialization completed(0) …
C66xx_0: GEL Output: configSGMIISerdes Setup… Begin
C66xx_0: GEL Output:
SGMII SERDES has been configured.
C66xx_0: GEL Output: Set Board and DSP IO/Timers Pins…
C66xx_0: GEL Output: Set Board and DSP IO/Timers Pins… Done.
C66xx_0: GEL Output: Configuring CPSW …
C66xx_0: GEL Output: Configuring CPSW …Done
C66xx_0: GEL Output: Global Default Setup… Done.
[C66xx_0] ****SerDes has linked up!****
QMSS successfully initialized
CPPI successfully initialized
PA successfully initialized
TCP/IP Stack 'Hello World!' Application
TCP/IP Stack 'Hello World!' Application
PASS successfully initialized
Ethernet subsystem successfully initialized
Ethernet eventId : 48 and vectId (Interrupt) : 7
Registration of the EMAC Successful, waiting for link up ..
Network Added: If-1:10.21.0.41
还有另外一个问题:
看TI Network Developer's Kit (NDK) v2.21文档时,说需要重新编译ndk库文件,但通过ccs进行加载时根本找不到工程,ndk目录下有相应的ndk.mak文件,所以无法对库进行重新编译。
开发环境 CCS 5.2
NDK 版本 ndk_2_21_01_38
附件中是修改后的工程,请查看
Shine:
1. 看一下IP地址有没有设置在同一个网段?2. http://processors.wiki.ti.com/index.php/Rebuilding_the_NDK_Core
cheng wang14:
回复 Shine:
1 IP地址我确认过肯定是一个网段的,那个代码从一个环境移到另一个环境调整过,IP地址和代码没有对上,实际上这个环节肯定是对上的
cheng wang14:
回复 Shine:
在2中给出的链接我已经按照那个流程去执行了,但是用CCS不能找到ndk里的工程,不能打开
jie huang4:
回复 cheng wang14:
你好!请问你的问题解决了吗?我用的是6657的网口,自己做的板子,PHY能够初始化成功,但是发不了数,不能够ping通