仿真环境下,将.out文件下载到板子上
问题一:没有任何其他操作,只是在cmd指令ping,发现时断时连的现象(隔一段时间出现一次):
问题二:
我用串口助手给板卡发初始化指令(我用了两个端口:1004和1005)
在这个期间在CCS的console上出现了如下提示,然后网口断了:
ti.sysbios.heaps.HeapMem: line 294: out of memory: handle=0xc359708, size=1536
Error allocating memory for Rx data bufferError allocating Rx free descriptorsRx setup failedError: Unable to register the EMACA0=0x1 A1=0x0
A2=0x1 A3=0xc358714
A4=0x0 A5=0x200
A6=0xc358f60 A7=0xc358724
A8=0xc35871c A9=0xc3383b0
A10=0xc358714 A11=0x9
A12=0x90 A13=0xc00c418
A14=0xc34f910 A15=0x2710
A16=0x6 A17=0x0
A18=0xc00d31c A19=0x20
A20=0x6c A21=0x4c
A22=0x0 A23=0x0
A24=0x0 A25=0x0
A26=0xa00 A27=0x0
A28=0x4000 A29=0x80
A30=0x1 A31=0x1
B0=0x0 B1=0x0
B2=0x0 B3=0xc2c1748
B4=0xc3586e8 B5=0x15000103
B6=0x0 B7=0xd
B8=0xc358f40 B9=0x4
B10=0xc3595cc B11=0x0
B12=0x0 B13=0xc3451d0
B14=0xc35f898 B15=0xc00d358
B16=0x0 B17=0xc34f628
B18=0x100000 B19=0xc0000
B20=0x69 B21=0x28
B22=0x28 B23=0xc3537a4
B24=0x0 B25=0x3000
B26=0x3000 B27=0x0
B28=0x0 B29=0x502c0
B30=0xbc B31=0xc358720
NTSR=0x1000e
ITSR=0xf
IRP=0xc27140c
SSR=0x0
AMR=0x0
RILC=0x0
ILC=0x0
Exception at 0xc2a49a0
EFR=0x2 NRP=0xc2a49a0
Internal exception: IERR=0x1
Instruction fetch exception
ti.sysbios.family.c64p.Exception: line 248: E_exceptionMin: pc = 0x0c2a49a0, sp = 0x0c00d358.
To see more exception detail, use ROV or set 'ti.sysbios.family.c64p.Exception.enablePrint = true;'
xdc.runtime.Error.raise: terminating execution
应该是内存溢出导致的,然后我把heapmem设置更大了:
重复上面步骤,在与串口助手交互中又提示,然后网口就彻底断了:
A0=0x5b4 A1=0x0
A2=0x1 A3=0x14
A4=0x14 A5=0x0
A6=0x0 A7=0x2102a8c0
A8=0xc048274 A9=0x8041bccc
A10=0x5b4 A11=0xc006ec8
A12=0x8041fd04 A13=0x1702a8c0
A14=0x2102a8c0 A15=0x0
A16=0x4 A17=0x0
A18=0x8042d67c A19=0x20
A20=0x0 A21=0x0
A22=0x0 A23=0x0
A24=0x0 A25=0x0
A26=0x0 A27=0x1e00
A28=0x8041f4c4 A29=0x8041f4b8
A30=0x8041f404 A31=0x0
B0=0x8041e684 B1=0x1
B2=0xb B3=0xc006ec8
B4=0x5c8 B5=0x218
B6=0x0 B7=0x5b4
B8=0x8041bc50 B9=0x5
B10=0x8041fd04 B11=0x2
B12=0x67ee1e83 B13=0x0
B14=0x80452318 B15=0x8042d760
B16=0x8002cbb0 B17=0x0
QMSS successfully initializedQMSS successfully initializedA0=0x8042d6e8 A1=0x8
A2=0x0 A3=0xc02cd00
A4=0xe A5=0x80000041
A6=0x80000021 A7=0x0
A8=0x80000041 A9=0x8044ac64
A10=0x20 A11=0x8041bc38
A12=0x80000021 A13=0x1
A14=0x1 A15=0xffffffff
A16=0x75732053 A17=0x0
A18=0x8042d7e4 A19=0x20
A20=0x0 A21=0x0
A22=0x0 A23=0x0
A24=0x0 A25=0x0
A26=0x0 A27=0x0
A28=0x4000 A29=0x0
A30=0x0 A31=0x0
B0=0x8042d768 B1=0xc056dba
B2=0x0 B3=0xc0385b0
B4=0x0 B5=0x8045282c
B6=0x0 B7=0x0
B8=0x0 B9=0x0
B10=0x8042d7f0 B11=0xc0520a4
B12=0x8043d929 B13=0xc04eaac
B14=0x80452318 B15=0x8042d690
B16=0x6920796c B17=0x6974696e
B18=0x3 B19=0x0
B20=0x69 B21=0x2e2
B22=0xf B23=0x0
B24=0x0 B25=0x3000
B26=0x3000 B27=0x0
B28=0x8041fcb8 B29=0x8041fcb8
B30=0x21 B31=0x8042d8c3
NTSR=0x1020c
ITSR=0xf
IRP=0xc056dba
SSR=0x0
AMR=0x0
RILC=0x0
ILC=0x0
Exception at 0xc02cd20
EFR=0x2 NRP=0xc02cd20
Internal exception: IERR=0x9
Instruction fetch exception
Opcode exception
ti.sysbios.family.c64p.Exception: line 248: E_exceptionMin: pc = 0x0c02cd20, sp = 0x8042d690.
To see more exception detail, use ROV or set 'ti.sysbios.family.c64p.Exception.enablePrint = true;'
xdc.runtime.Error.raise: terminating execution
另外对于配置cfg里面各个段应该放在那里?那些段应该放在同一个存储空间,有相关资料吗?我觉的网口问题和cfg段的分配也有关系,但是目前没有找到如何分配的依据,请问那里有相关详细的资料。
Shine:
请问是在EVM板上跑还是在自己的板子上跑?helloworld例程有改动过么?
user2002070:
回复 Shine:
在自己的板子上跑的
user5086137:
您好,我最近也在调试网口,用的是c6657的板子,用的是NDK例程中的client,现在可以ping通,但是用网络调试助手调试时,一直连接不上,请问协议类型选择TCP Client时,服务器IP指的是电脑的IP还是板子的IP?麻烦您给指点一下,多谢啦!
user2002070:
回复 user5086137:
最近在换工作,忙着面试,过来这几天如果你的问题还没解决,一起探讨!
user4240389:
回复 user2002070:
好的,谢谢您!
我是user5084137,我的问题还是没解决,现在通过网口调试助手还是连接不上,我用的是C6657中的client例程,程序只修改了IP地址和网关,其他的都没有修改,不知道问题出在了哪里,希望您有空了能给我些指点与建议,万分感谢!
user4240389:
回复 user2002070:
您好,请问您上面的网络调试助手截图中的服务器IP地址指的的是板子的地址吗?