各位帮我看看这个fault

4 views
Skip to first unread message

ZhangPeng163

unread,
Sep 20, 2011, 9:07:12 PM9/20/11
to RTT中国技术讨论组
LM3S+RTT
 
Finsh output:
psr: 0x61000000
 pc: 0x00009a7e
 lr: 0x000120e9
r12: 0x00000000
r03: 0xffffffff
r02: 0x20002954
r01: 0x00012091
r00: 0x200022f0
hard fault on thread: etx
 
--------------------------------------------------------------------
Best Regards
Zhang Peng
fault.JPG

bernard

unread,
Sep 20, 2011, 9:21:51 PM9/20/11
to rt-threa...@googlegroups.com
发生场景是什么样的?应该是r0指向的地址不对了
fault.JPG

ZhangPeng163

unread,
Sep 20, 2011, 9:30:08 PM9/20/11
to rt-threa...@googlegroups.com
LWIP,多TCP客户机连接一个服务器,测试了3天,出来这个错误。
fault.JPG

bernard

unread,
Sep 20, 2011, 9:45:54 PM9/20/11
to rt-threa...@googlegroups.com
r0寄存器应该是msg,看起来是msg出错了。很像是内存越界了
fault.JPG

ZhangPeng163

unread,
Sep 20, 2011, 9:48:03 PM9/20/11
to rt-threa...@googlegroups.com
fault1.JPG
fault.JPG

MingBai

unread,
Sep 20, 2011, 9:49:13 PM9/20/11
to rt-threa...@googlegroups.com
ʲô�汾�Ĵ��룿
�ֲ�������ֵ��û�У�����r0���ĸ�����

�� 2011/9/21 9:30, ZhangPeng163 �:
LWIP����TCP�ͻ��� ����һ����������������3�죬�����������
----- Original Message -----
From: bernard
Sent: Wednesday, September 21, 2011 9:21 AM
Subject: Re: ��λ���ҿ������fault

������ʲô��ģ�Ӧ����r0ָ��ĵ�ַ������

�� 2011��9��21�� ����9:07��ZhangPeng163 <peng....@163.com>д ����

ZhangPeng163

unread,
Sep 20, 2011, 9:58:38 PM9/20/11
to rt-threa...@googlegroups.com
0.3.1版本,r0在0x00009A74初始化为栈地址,即msg,没有出错。然后在9A7C处加上0x04偏移访问时就出错了。线程的栈空间被改变了?
fault1.JPG
fault.JPG

bernard

unread,
Sep 20, 2011, 10:06:49 PM9/20/11
to rt-threa...@googlegroups.com
你的截图是什么场景?正常的,或simulator用于看汇编?

9A7C并未更改R0寄存器的值
fault1.JPG
fault.JPG

MingBai

unread,
Sep 20, 2011, 10:10:48 PM9/20/11
to rt-threa...@googlegroups.com
ps锟斤拷锟斤拷锟斤拷幕馗锟缴撅拷锟酵计拷桑锟斤拷锟饺灰伙拷锟絤ail锟斤拷锟斤拷图锟斤拷太锟斤拷锟斤拷

锟斤拷 2011/9/21 9:58, ZhangPeng163 写锟斤拷:
0.3.1锟芥本锟斤拷r0锟斤拷 0x00009A74锟斤拷始锟斤拷为

ZhangPeng163

unread,
Sep 20, 2011, 10:11:29 PM9/20/11
to rt-threa...@googlegroups.com
仅汇编查看,不是出错时的场景。
fault1.JPG
fault.JPG

bernard

unread,
Sep 20, 2011, 10:22:19 PM9/20/11
to rt-threa...@googlegroups.com
按照最初的打印,r0值是0x200022f0

估计你得复现问题了,先找到复现的方法,然后再考虑是因为什么导致了问题。另外,fault了,会打印线程列表情况,打印的时候线程栈有否溢出?

ZhangPeng163

unread,
Sep 20, 2011, 10:28:34 PM9/20/11
to rt-threa...@googlegroups.com
复现的话断电打在fault.c的while(1)吗?再等两三天吧,实在不行请RTT出马,-)

ZhangPeng163

unread,
Sep 21, 2011, 12:20:09 AM9/21/11
to rt-threa...@googlegroups.com
今天运气很好,不到1小时就出问题了。
error = -2是什么意思?BCNETS7和SIMATIC是以太网服务器线程。
----- Original Message -----
From: bernard
Sent: Wednesday, September 21, 2011 10:22 AM
Subject: Re: 各位帮我看看这个fault

fault2.JPG

ZhangPeng163

unread,
Sep 21, 2011, 12:24:08 AM9/21/11
to rt-threa...@googlegroups.com
#define RT_ETIMEOUT      2    /* Timed out         */
什么意思?
fault2.JPG

bernard

unread,
Sep 21, 2011, 12:27:17 AM9/21/11
to rt-threa...@googlegroups.com
超时

这个错误无关紧要
fault2.JPG

吴洋勇

unread,
Sep 21, 2011, 12:34:17 AM9/21/11
to rt-threa...@googlegroups.com
http://www.rt-thread.org/dokuwiki/doku.php?id=rt-thread%E5%86%85%E6%A0%B8%E7%9B%B8%E5%85%B3%E9%97%AE%E9%A2%98

在 2011年9月21日 下午12:27,bernard <bernar...@gmail.com>写道:
#define RT_ETIMEOUT      2    /* Timed out         */
什么意思?
error = -2是什么意思?BCNETS7和SIMATIC是以太网服务器线程
吴洋勇

ZhangPeng163

unread,
Sep 21, 2011, 12:44:16 AM9/21/11
to rt-threa...@googlegroups.com
也不是堆栈溢出的问题吧,还是9A7E这个地方出错,如何定位给个建议。
fault2.JPG

ZhangPeng163

unread,
Sep 21, 2011, 1:07:56 AM9/21/11
to RTT中国技术讨论组
sorry,是200022f0。
fault4.JPG
fault2.JPG

ZhangPeng163

unread,
Sep 21, 2011, 1:05:16 AM9/21/11
to rt-threa...@googlegroups.com
内存数据
----- Original Message -----
Sent: Wednesday, September 21, 2011 12:44 PM
Subject: Re: 各位帮我看看这个fault

fault3.JPG
fault2.JPG
Reply all
Reply to author
Forward
0 new messages