s3c2410串口程序的调试。
编译无错,在用H-JTAG调试的时候,超级终端显示为一下:
Bad mode in prefetch abort handler detected: mode ABT_32iety NET3.039 Vectors: (0xffff0000 to 0xffff0040)ket C 0000: 00000000 00000000 00000000 00000000 00000000 00000000 Starting kswapd devfs: v1.10 (200201 Stubs: (0xffff0200 to 0xffff04b8)ro.au) 0200: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 ttyS%d0 at I/O 0x50000000 (irq = 52) is a S3C2410 0220: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 ttyS%d2 at I/O 0x50008000 (ir 0240: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000t = 0x30381000 Console: switching to colour frame buffe 0260: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 S3C2410 frame buffer pty: 256 Unix98 ptys conf 0280: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 block: 128 slots per queue, batch=32 0380: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 0x00e00000-0x01ffc000 : "nandflash0 (bon4)" 03a0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000ce520 "" bon0: 00000000 03c0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00 0420: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 0440: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 0460: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 0480: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 04a0: 00000000 00000000 00000000 00000000 00000000 00000000 Internal error: Oops: 0 CPU: 0 pc : [<30000000>] lr : [<c001aabc>] Not tainted sp : c0189f68 ip : c0189fc0 fp : 00000000 r10: 30013de4 r9 : 41129200 r8 : c018ac40 r7 : c01b8000 r6 : c01b8018 r5 : c0188000 r4 : c001aaa8 r3 : 00000000 r2 : 00000000 r1 : 00000032 r0 : 00000000 Flags: nZCv IRQs off FIQs off Mode ABT_32 Segment kernel Control: C000317F Table: 33F4C000 DAC: 0000001D Process swapper (pid: 0, stackpage=c0189000) Stack: (0xc0189fa0 to 0xc018a000) 9fa0: c001aabc 30000000 600000d7 ffffffff c0189fd4 c0189fc0 c001a408 c001aab8 9fc0: 00004000 c01e9c18 c0189fe4 c0189fd8 c0019030 c001a3c0 c0189ffc c0189fe8 9fe0: c0008864 c0019010 c01b842c c01e9c18 00000000 c018a000 c0008080 c0008774 Backtrace: no frame pointer Code: bad PC value. Kernel panic: Attempted to kill the idle task! In idle task - not syncing
不知道是什么原因,现怀疑两个问题:
1程序跑飞了~关于程序跑飞了我到现在都不懂,是没有显示还是程序运行到一半就没有结果了?
2在一个论坛上,说H-JTAG调试的过程中,不能按RESET,不然会破坏FLASH中的引导程序,可是我的引导程序应该是没有问题的啊~在没有加载调试程序的时候,重启的话,超级终端有显示的呀!
|