-> i
NAME ENTRY TID PRI STATUS PC SP ERRNO DELAY
---------- ------------ -------- --- ---------- -------- -------- ------- -----
tIsr0 17161c 21b28f0 0 PEND 1fb0d0 21b2870 0 0
tJobTask 1d212c 21b6200 0 PEND 1fb0d0 21b6170 0 0
tExcTask 1d131c 3c1ff0 0 PEND 1fb0d0 3c41a0 0 0
tLogTask logTask 21b93c0 0 PEND 1f8d00 21b92a0 0 0
tNbioLog 1d30b0 21bcba0 0 PEND 1fb0d0 21bcaa0 0 0
tShell0 shellTask 23bff70 1 READY 2040c0 23be240 3d0001 0
tWdbTask wdbTask 23ae760 3 PEND 1fb0d0 23ae690 0 0
tErfTask 172694 21c0290 10 PEND 1fb8b4 21c01e0 0 0
ipcom_tick> 2156f4 2322d80 20 DELAY 20236c 2322cf0 0 82
tXbdServic> 18ae98 21c7120 50 PEND+T 1fb8b4 21c7070 3d0004 88
tNet0 ipcomNetTask 21d7ae0 50 STOP 258094 21d77e0 0 0
ipcom_sysl> 2169a8 23432a0 50 PEND 1fb8b4 2343100 0 0
ipnetd 2245e4 23a9560 50 PEND 1fdd8c 23a9490 3d0004 0
tNetCheckL> taskNetCheck 41c7c10 90 PEND 1fb0d0 41c7b50 0 0
tNet1Recv taskNet1Recv 41ca5e0 94 PEND 1fb0d0 41ca300 0 0
tNet1Send taskNet1Send 41cdfc0 94 PEND 1fb0d0 41cdd50 0 0
tTffsPTask flPollTask 21c3870 100 DELAY 20236c 21c3800 0 6
taskdatgen taskDataGen 41d18c0 100 PEND+T 1fb0d0 41d17f0 3d0002 388
taskIdle taskIdle 41d34a0 150 DELAY 20236c 41d3410 0 321
miiBusMoni> 16cf00 21da6a0 254 DELAY 20236c 21da620 0 221
value = 0 = 0x0
-> d 0x21d77e0
NOTE: memory values are displayed in hexadecimal.
0x021d77e0: 021d 7870 0025 7f6c 0000 008e 0000 0008 *..xp.%.l........*
0x021d77f0: 021d 7830 0239 89e0 e0e2 782e e0e2 782e *..x0.9....x...x.*
0x021d7800: 021d 7810 0027 0fec 5010 fdf0 0000 0028 *..x..'..P......(*
0x021d7810: 021d 7820 5751 1770 0000 0001 023a 58b0 *..x WQ.p.....:X.*
0x021d7820: 021d 7840 0027 2904 e0e2 782e d40c 938a *..x@.')...x.....*
0x021d7830: 0239 8a60 0000 0014 c0a8 0186 023a 58b0 *.9.`.........:X.*
0x021d7840: 021d 7860 0022 ad98 0000 0002 c0a8 0186 *..x`."..........*
0x021d7850: 0027 4e8c ffff ffea 0239 8a60 c0a8 0186 *.'N......9.`....*
0x021d7860: 0000 0001 0239 8a60 023a 58b0 002a 4134 *.....9.`.:X..*A4*
0x021d7870: 021d 7920 0027 5d10 0000 0082 0000 0004 *..y .'].........*
0x021d7880: c0a8 0186 0000 0000 c0a8 0128 0000 0000 *...........(....*
0x021d7890: 0000 0000 0000 0000 e002 4010 0022 6764 *..........@.."gd*
0x021d78a0: 021d 7888 021d 7880 0600 0000 0000 000e *..x...x.........*
0x021d78b0: 0000 0000 023a 58b0 0000 0000 021d 78f0 *.....:X.......x.*
0x021d78c0: 021d 78f0 0023 49dc 0000 0000 0000 000e *..x..#I.........*
0x021d78d0: 021d 78f0 023a 58b0 0220 d38a 0220 d398 *..x..:X.. ... ..*
-> ti tNet0
NAME ENTRY TID PRI STATUS PC SP ERRNO DELAY
---------- ------------ -------- --- ---------- -------- -------- ------- -----
tNet0 ipcomNetTask 21d7ae0 50 STOP 258094 21d77e0 0 0
task stack: base 0x21d7ae0 end 0x21d53d0 size 10000 high 1904 margin 8096
exc. stack: base 0x21d8d90 end 0x21d7da0 start 0x21d8da0
exc. stack: size 4080 high 816 margin 3264
proc id: 0x2ab668 ((null))
options: 0x9003
VX_SUPERVISOR_MODE VX_UNBREAKABLE VX_DEALLOC_TCB VX_DEALLOC_EXC_STACK
VxWorks Events
--------------
Events Pended on : Not Pended
Received Events : 0x0
Options : N/A
r0 = 0x00257f6c sp = 0x021d77e0 r2 = 0x00282218
r3 = 0x00000008 r4 = 0x00000005 r5 = 0x00000001
r6 = 0x0000001e r7 = 0x00004fec r8 = 0x00257f20
r9 = 0x00000014 r10 = 0xd40c938a r11 = 0x00009300
r12 = 0x0000008a r13 = 0x002ac13c r14 = 0x00000000
r15 = 0x00000000 r16 = 0x00000000 r17 = 0x00000000
r18 = 0x00000000 r19 = 0x00000000 r20 = 0x00257b6c
r21 = 0x023449a0 r22 = 0xc0a80186 r23 = 0x02398a60
r24 = 0x021d7880 r25 = 0x021d7888 r26 = 0x0023c8dc
r27 = 0x00000000 r28 = 0x02398a60 r29 = 0x00257f20
r30 = 0x021ea76c r31 = 0x00000000 msr = 0x00029230
lr = 0x00257f6c ctr = 0x00000000 pc = 0x00258094
cr = 0x28000420 xer = 0x00000000 pgTblPtr = 0x002ab668
asid = 0x00000001 spefscr = 0x00000000
coprocTaskShow: TaskId 0x21d7ae0 has no coprocessors selected
program
Exception current instruction address: 0x00258094
Machine Status Register: 0x00029230
Condition Register: 0x28000420
Exception Syndrome Register: 0x08000000
value = 0 = 0x0
-> tt tNet0
0x00149708 vxTaskEntry +0x48 : ipcomNetTask ()
0x0012da68 ipcomNetTask +0x38 : 0x00270e94 ()
0x00270f6c jobQueueProcess+0xdc : 0x00102cd0 ()
0x00102fb4 mv88e1111PhyInit+0x9e8: muxReceive ()
0x00271ddc muxReceive +0x94 : 0x00272538 ()
0x00272630 ipcom_sem_interrupt_flush+0xfc : ipcom_pkt_input ()
0x00272df4 ipcom_pkt_input+0x170: 0x00272efc ()
0x002732d0 ipcom_pkt_create+0x424: ipnet_ip4_input ()
0x00275d10 ipnet_ip4_input+0xe84: iptcp_input ()
value = 0 = 0x0
Exception current instruction address: 0x00258094
查看这条指令时干什么的
把vxworks反汇编
第一种方法:l 0x00258094
第二种方法:
NAME ENTRY TID PRI STATUS PC SP ERRNO DELAY
---------- ------------ -------- --- ---------- -------- -------- ------- -----
tIsr0 17161c 21b28f0 0 PEND 1fb0d0 21b2870 0 0
tJobTask 1d212c 21b6200 0 PEND 1fb0d0 21b6170 0 0
tExcTask 1d131c 3c1ff0 0 PEND 1fb0d0 3c41a0 0 0
tLogTask logTask 21b93c0 0 PEND 1f8d00 21b92a0 0 0
tNbioLog 1d30b0 21bcba0 0 PEND 1fb0d0 21bcaa0 0 0
tShell0 shellTask 23bff70 1 READY 2040c0 23be240 3d0001 0
tWdbTask wdbTask 23ae760 3 PEND 1fb0d0 23ae690 0 0
tErfTask 172694 21c0290 10 PEND 1fb8b4 21c01e0 0 0
ipcom_tick> 2156f4 2322d80 20 DELAY 20236c 2322cf0 0 82
tXbdServic> 18ae98 21c7120 50 PEND+T 1fb8b4 21c7070 3d0004 88
tNet0 ipcomNetTask 21d7ae0 50 STOP 258094 21d77e0 0 0
ipcom_sysl> 2169a8 23432a0 50 PEND 1fb8b4 2343100 0 0
ipnetd 2245e4 23a9560 50 PEND 1fdd8c 23a9490 3d0004 0
tNetCheckL> taskNetCheck 41c7c10 90 PEND 1fb0d0 41c7b50 0 0
tNet1Recv taskNet1Recv 41ca5e0 94 PEND 1fb0d0 41ca300 0 0
tNet1Send taskNet1Send 41cdfc0 94 PEND 1fb0d0 41cdd50 0 0
tTffsPTask flPollTask 21c3870 100 DELAY 20236c 21c3800 0 6
taskdatgen taskDataGen 41d18c0 100 PEND+T 1fb0d0 41d17f0 3d0002 388
taskIdle taskIdle 41d34a0 150 DELAY 20236c 41d3410 0 321
miiBusMoni> 16cf00 21da6a0 254 DELAY 20236c 21da620 0 221
value = 0 = 0x0
-> d 0x21d77e0
NOTE: memory values are displayed in hexadecimal.
0x021d77e0: 021d 7870 0025 7f6c 0000 008e 0000 0008 *..xp.%.l........*
0x021d77f0: 021d 7830 0239 89e0 e0e2 782e e0e2 782e *..x0.9....x...x.*
0x021d7800: 021d 7810 0027 0fec 5010 fdf0 0000 0028 *..x..'..P......(*
0x021d7810: 021d 7820 5751 1770 0000 0001 023a 58b0 *..x WQ.p.....:X.*
0x021d7820: 021d 7840 0027 2904 e0e2 782e d40c 938a *..x@.')...x.....*
0x021d7830: 0239 8a60 0000 0014 c0a8 0186 023a 58b0 *.9.`.........:X.*
0x021d7840: 021d 7860 0022 ad98 0000 0002 c0a8 0186 *..x`."..........*
0x021d7850: 0027 4e8c ffff ffea 0239 8a60 c0a8 0186 *.'N......9.`....*
0x021d7860: 0000 0001 0239 8a60 023a 58b0 002a 4134 *.....9.`.:X..*A4*
0x021d7870: 021d 7920 0027 5d10 0000 0082 0000 0004 *..y .'].........*
0x021d7880: c0a8 0186 0000 0000 c0a8 0128 0000 0000 *...........(....*
0x021d7890: 0000 0000 0000 0000 e002 4010 0022 6764 *..........@.."gd*
0x021d78a0: 021d 7888 021d 7880 0600 0000 0000 000e *..x...x.........*
0x021d78b0: 0000 0000 023a 58b0 0000 0000 021d 78f0 *.....:X.......x.*
0x021d78c0: 021d 78f0 0023 49dc 0000 0000 0000 000e *..x..#I.........*
0x021d78d0: 021d 78f0 023a 58b0 0220 d38a 0220 d398 *..x..:X.. ... ..*
-> ti tNet0
NAME ENTRY TID PRI STATUS PC SP ERRNO DELAY
---------- ------------ -------- --- ---------- -------- -------- ------- -----
tNet0 ipcomNetTask 21d7ae0 50 STOP 258094 21d77e0 0 0
task stack: base 0x21d7ae0 end 0x21d53d0 size 10000 high 1904 margin 8096
exc. stack: base 0x21d8d90 end 0x21d7da0 start 0x21d8da0
exc. stack: size 4080 high 816 margin 3264
proc id: 0x2ab668 ((null))
options: 0x9003
VX_SUPERVISOR_MODE VX_UNBREAKABLE VX_DEALLOC_TCB VX_DEALLOC_EXC_STACK
VxWorks Events
--------------
Events Pended on : Not Pended
Received Events : 0x0
Options : N/A
r0 = 0x00257f6c sp = 0x021d77e0 r2 = 0x00282218
r3 = 0x00000008 r4 = 0x00000005 r5 = 0x00000001
r6 = 0x0000001e r7 = 0x00004fec r8 = 0x00257f20
r9 = 0x00000014 r10 = 0xd40c938a r11 = 0x00009300
r12 = 0x0000008a r13 = 0x002ac13c r14 = 0x00000000
r15 = 0x00000000 r16 = 0x00000000 r17 = 0x00000000
r18 = 0x00000000 r19 = 0x00000000 r20 = 0x00257b6c
r21 = 0x023449a0 r22 = 0xc0a80186 r23 = 0x02398a60
r24 = 0x021d7880 r25 = 0x021d7888 r26 = 0x0023c8dc
r27 = 0x00000000 r28 = 0x02398a60 r29 = 0x00257f20
r30 = 0x021ea76c r31 = 0x00000000 msr = 0x00029230
lr = 0x00257f6c ctr = 0x00000000 pc = 0x00258094
cr = 0x28000420 xer = 0x00000000 pgTblPtr = 0x002ab668
asid = 0x00000001 spefscr = 0x00000000
coprocTaskShow: TaskId 0x21d7ae0 has no coprocessors selected
program
Exception current instruction address: 0x00258094
Machine Status Register: 0x00029230
Condition Register: 0x28000420
Exception Syndrome Register: 0x08000000
value = 0 = 0x0
-> tt tNet0
0x00149708 vxTaskEntry +0x48 : ipcomNetTask ()
0x0012da68 ipcomNetTask +0x38 : 0x00270e94 ()
0x00270f6c jobQueueProcess+0xdc : 0x00102cd0 ()
0x00102fb4 mv88e1111PhyInit+0x9e8: muxReceive ()
0x00271ddc muxReceive +0x94 : 0x00272538 ()
0x00272630 ipcom_sem_interrupt_flush+0xfc : ipcom_pkt_input ()
0x00272df4 ipcom_pkt_input+0x170: 0x00272efc ()
0x002732d0 ipcom_pkt_create+0x424: ipnet_ip4_input ()
0x00275d10 ipnet_ip4_input+0xe84: iptcp_input ()
value = 0 = 0x0
Exception current instruction address: 0x00258094
查看这条指令时干什么的
把vxworks反汇编
第一种方法:l 0x00258094
第二种方法:
![](http://hi.csdn.net/attachment/201112/1/0_1322721234MtEf.gif)
点vxworks就可以看
怎么查看vxworks 引导到内存的位置?你的RAM从什么地址开始?
makefile 里面
ROM_TEXT_ADRS = fff00100 # ROM entry address
ROM_SIZE = 00100000 # number of bytes of ROM space
ROM_WARM_ADRS = fff00108 # ROM warm entry address
ROM_LINK_ADRS = fff00000
RAM_LOW_ADRS = 00100000 # RAM text/data address
RAM_HIGH_ADRS = 01000000 # RAM text/data address
任务堆栈大小?
10000
log任务有五个
tNetCheck
tNet1Recv
tNet1Send
taskdatgen
taskIdle
建议RAM_LOW_ADRS = 00100000 # RAM text/data address 改成200000
makefile里面和config.h里面都改
-> memShow
status bytes blocks avg block max block
-------- -------------- ---------- ---------- ----------
current
free 310446224 206 1507020 310402928
alloc 63328240 994 63710 -
internal 624 3 208 -
cumulative
alloc 63964896 1743 36698 -
peak
alloc 63356096 - - -
value = 0 = 0x0