Toggle navigation
首页
问答
文章
积分商城
专家
专区
更多专区...
文档中心
返回主站
搜索
提问
会员
中心
登录
注册
Hardfault
错误定位问题
发布于 2019-09-05 16:47:46 浏览:2253
订阅该版
1、这个帖子[https://www.rt-thread.org/qa/for ... ypeid%26typeid%3D67](https://www.rt-thread.org/qa/forum.php?mod=viewthread&tid=2300&extra=page%3D1%26filter%3Dtypeid%26typeid%3D67)是不是已经集成在cm_backtrace里面了?感觉看的不是很懂。 2、另外跟着RT-Thread温控系统DIY做的练习,不定期会进入如下的Hardfault,不知道该怎么定位,看信息好像和论坛13年的帖子不太一样。 ```msh />[648785] D/mqtt mqtt0: pub_sock recv 6 byte: ▒$dp [877167] E/at.clnt at_clnt: AT Client receive failed, uart device get data error(-2) [877176] E/at.skt at_clnt: esp8266 device(esp0) receive size(2) data failed. [882165] E/mqtt mqtt0: [882165] wait Ping Response res: 0 [882249] D/onenet.mqtt mqtt0: Enter mqtt_offline_callback! [887356] D/mqtt mqtt0: restart! [887359] D/onenet.mqtt mqtt0: Enter mqtt_connect_callback! [887365] D/mqtt mqtt0: ipv4 address port: 6002 [887370] D/mqtt mqtt0: HOST = '183.230.40.39' [887494] I/mqtt mqtt0: MQTT server connect success. [887501] D/onenet.mqtt mqtt0: Enter mqtt_online_callback! thread pri status sp stack size max used left tick error -------- --- ------- ---------- ---------- ------ ---------- --- mqtt0 10 running 0x0000015c 0x00001000 16% 0x00000001 000 DFSP1 15 suspend 0x000000a4 0x00000800 46% 0x00000009 000 DFSP0 15 suspend 0x000000a4 0x00000800 08% 0x00000014 000 Ds18b20 16 suspend 0x000000ec 0x00000280 78% 0x0000000e 000 nRF24L01 16 suspend 0x000000b4 0x00000400 52% 0x00000008 000 onenet 14 suspend 0x00000090 0x00000800 35% 0x0000000b 000 LED1 16 suspend 0x0000007c 0x00000100 48% 0x00000003 000 tshell 20 suspend 0x00000138 0x00001000 20% 0x00000001 000 at_clnt 9 suspend 0x000000b8 0x00000600 29% 0x00000002 000 sys_work 23 suspend 0x0000005c 0x00000800 33% 0x00000003 000 tidle0 31 ready 0x00000044 0x00000100 35% 0x0000001d 000 [887562] E/cmb mqtt0: [887562] E/cmb mqtt0: Firmware name: rtthread, hardware version: 1.0, software version: 1.0 [887562] E/cmb mqtt0: Fault on interrupt or bare metal(no OS) environment [887562] E/cmb mqtt0: ===== Thread stack information ===== [887562] E/cmb mqtt0: addr: 20004ae0 data: 08000410 [887562] E/cmb mqtt0: addr: 20004ae4 data: 21000000 [887562] E/cmb mqtt0: ==================================== [887562] E/cmb mqtt0: =================== Registers information ==================== [887562] E/cmb mqtt0: R0 : 0800043d R1 : fffffffd R2 : 20004ae8 R3 : 10000000 [887562] E/cmb mqtt0: R12: 00000000 LR : 2000077c PC : 0000000a PSR: 0802710f [887562] E/cmb mqtt0: ============================================================== [887562] E/cmb mqtt0: Bus fault is caused by precise data access violation [887562] E/cmb mqtt0: The bus fault occurred address is 5a22f684 [887562] E/cmb mqtt0: Show more call stack info by run: addr2line -e rtthread.axf -a -f 0000000a C:\WINDOWS\system32>addr2line -e rtthread.axf -a -f 0000000a 0x0000000a ?? ??:0```这个addr2line出来的数据也是好迷,完全看不懂的说~:funk:
查看更多
2
个回答
默认排序
按发布时间排序
armink
2019-09-05
这家伙很懒,什么也没写!
感觉 CSTACK 没有配置正确,配置完以后,可以使用 cmb_test 命令测试一下
Tonny
2019-09-06
这家伙很懒,什么也没写!
>感觉 CSTACK 没有配置正确,配置完以后,可以使用 cmb_test 命令测试一下 --- ``` msh />cmb_test Please input 'cmb_test
' msh />cmb_test DIVBYZERO thread pri status sp stack size max used left tick error -------- --- ------- ---------- ---------- ------ ---------- --- mqtt0 10 suspend 0x00000164 0x00001000 17% 0x00000001 000 DFSP1 15 suspend 0x000000a4 0x00000800 08% 0x00000014 000 DFSP0 15 suspend 0x000000a4 0x00000800 08% 0x00000014 000 Ds18b20 16 suspend 0x000000ec 0x00000280 78% 0x0000000e 000 nRF24L01 16 suspend 0x000000ac 0x00000400 52% 0x00000008 000 onenet 14 suspend 0x00000090 0x00000800 35% 0x0000000b 000 LED1 16 suspend 0x0000007c 0x00000100 48% 0x0000000a 000 tshell 20 running 0x00000138 0x00001000 07% 0x00000007 000 at_clnt 9 suspend 0x000000b8 0x00000600 24% 0x00000001 000 sys_work 23 suspend 0x0000005c 0x00000800 33% 0x00000003 000 tidle0 31 ready 0x00000044 0x00000100 35% 0x0000000e 000 [38930] E/cmb tshell: [38930] E/cmb tshell: Firmware name: rtthread, hardware version: 1.0, software version: 1.0 [38930] E/cmb tshell: Fault on thread tshell [38930] E/cmb tshell: ===== Thread stack information ===== [38930] E/cmb tshell: addr: 20007bb8 data: 00000000 [38930] E/cmb tshell: addr: 20007bbc data: 00000008 [38930] E/cmb tshell: addr: 20007bc0 data: 20006b36 [38930] E/cmb tshell: addr: 20007bc4 data: 080089df [38930] E/cmb tshell: addr: 20007bc8 data: 00000000 [38930] E/cmb tshell: addr: 20007bcc data: 20006b36 [38930] E/cmb tshell: addr: 20007bd0 data: 20006b3f [38930] E/cmb tshell: addr: 20007bd4 data: 00000000 [38930] E/cmb tshell: addr: 20007bd8 data: 00000000 [38930] E/cmb tshell: addr: 20007bdc data: 00000000 [38930] E/cmb tshell: addr: 20007be0 data: 00000000 [38930] E/cmb tshell: addr: 20007be4 data: 00000000 [38930] E/cmb tshell: addr: 20007be8 data: 00000000 [38930] E/cmb tshell: addr: 20007bec data: 00000000 [38930] E/cmb tshell: addr: 20007bf0 data: 00000000 [38930] E/cmb tshell: addr: 20007bf4 data: 20006b36 [38930] E/cmb tshell: addr: 20007bf8 data: 00000012 [38930] E/cmb tshell: addr: 20007bfc data: deadbeef [38930] E/cmb tshell: addr: 20007c00 data: deadbeef [38930] E/cmb tshell: addr: 20007c04 data: deadbeef [38930] E/cmb tshell: addr: 20007c08 data: deadbeef [38930] E/cmb tshell: addr: 20007c0c data: 0801b831 [38930] E/cmb tshell: addr: 20007c10 data: 00000000 [38930] E/cmb tshell: addr: 20007c14 data: 0000000d [38930] E/cmb tshell: addr: 20007c18 data: 20003ec9 [38930] E/cmb tshell: addr: 20007c1c data: 080172db [38930] E/cmb tshell: ==================================== [38930] E/cmb tshell: =================== Registers information ==================== [38930] E/cmb tshell: R0 : 0000000a R1 : 00000000 R2 : 0000004f R3 : 80808000 [38930] E/cmb tshell: R12: 01010101 LR : 0800d519 PC : 0800d534 PSR: 41000000 [38930] E/cmb tshell: ============================================================== [38930] E/cmb tshell: Usage fault is caused by Indicates a divide by zero has taken place (can be set only if DIV_0_T [38930] E/cmb tshell: Show more call stack info by run: addr2line -e rtthread.axf -a -f 0800d534 0800d515 080089db 08 msh />cmb_test Please input 'cmb_test
' msh />cmb_test UNALIGNED addr:0x00 value:0x20004AE8 addr:0x04 value:0x0800032D thread pri status sp stack size max used left tick error -------- --- ------- ---------- ---------- ------ ---------- --- mqtt0 10 suspend 0x00000164 0x00001000 16% 0x00000002 000 DFSP1 15 suspend 0x000000a4 0x00000800 08% 0x00000014 000 DFSP0 15 suspend 0x000000a4 0x00000800 08% 0x00000014 000 Ds18b20 16 suspend 0x000000ec 0x00000280 78% 0x0000000e 000 nRF24L01 16 suspend 0x000000ac 0x00000400 52% 0x00000008 000 onenet 14 suspend 0x000000a0 0x00000800 35% 0x0000000b 000 LED1 16 suspend 0x0000007c 0x00000100 48% 0x0000000a 000 tshell 20 running 0x00000138 0x00001000 07% 0x00000005 000 at_clnt 9 suspend 0x000000b8 0x00000600 24% 0x00000004 000 sys_work 23 suspend 0x0000005c 0x00000800 33% 0x00000003 000 tidle0 31 ready 0x00000044 0x00000100 35% 0x0000001a 000 [50761] E/cmb tshell: [50761] E/cmb tshell: Firmware name: rtthread, hardware version: 1.0, software version: 1.0 [50761] E/cmb tshell: Fault on thread tshell [50761] E/cmb tshell: ===== Thread stack information ===== [50761] E/cmb tshell: addr: 20007bb8 data: 0800032d [50761] E/cmb tshell: addr: 20007bbc data: 00000008 [50761] E/cmb tshell: addr: 20007bc0 data: 20006b36 [50761] E/cmb tshell: addr: 20007bc4 data: 080089df [50761] E/cmb tshell: addr: 20007bc8 data: 00000000 [50761] E/cmb tshell: addr: 20007bcc data: 20006b36 [50761] E/cmb tshell: addr: 20007bd0 data: 20006b3f [50761] E/cmb tshell: addr: 20007bd4 data: 00000000 [50761] E/cmb tshell: addr: 20007bd8 data: 00000000 [50761] E/cmb tshell: addr: 20007bdc data: 00000000 [50761] E/cmb tshell: addr: 20007be0 data: 00000000 [50761] E/cmb tshell: addr: 20007be4 data: 00000000 [50761] E/cmb tshell: addr: 20007be8 data: 00000000 [50761] E/cmb tshell: addr: 20007bec data: 00000000 [50761] E/cmb tshell: addr: 20007bf0 data: 00000000 [50761] E/cmb tshell: addr: 20007bf4 data: 20006b36 [50761] E/cmb tshell: addr: 20007bf8 data: 00000012 [50761] E/cmb tshell: addr: 20007bfc data: deadbeef [50761] E/cmb tshell: addr: 20007c00 data: deadbeef [50761] E/cmb tshell: addr: 20007c04 data: deadbeef [50761] E/cmb tshell: addr: 20007c08 data: deadbeef [50761] E/cmb tshell: addr: 20007c0c data: 0801b831 [50761] E/cmb tshell: addr: 20007c10 data: 00000000 [50761] E/cmb tshell: addr: 20007c14 data: 0000000d [50761] E/cmb tshell: addr: 20007c18 data: 20003ec9 [50761] E/cmb tshell: addr: 20007c1c data: 080172db [50761] E/cmb tshell: ==================================== [50761] E/cmb tshell: =================== Registers information ==================== [50761] E/cmb tshell: R0 : 00000000 R1 : 00000003 R2 : 0802c919 R3 : 00000000 [50761] E/cmb tshell: R12: 080262ad LR : 080091ad PC : 0800d568 PSR: 21000000 [50761] E/cmb tshell: ============================================================== [50761] E/cmb tshell: Usage fault is caused by indicates that an unaligned access fault has taken place [50761] E/cmb tshell: Show more call stack info by run: addr2line -e rtthread.axf -a -f 0800d568 080091a9 08000329 08 ``` 测试能正常出数据,应该cmb_test没问题吧?stm32f103ze的芯片。:D
撰写答案
登录
注册新账号
关注者
0
被浏览
2.3k
关于作者
Tonny
这家伙很懒,什么也没写!
提问
45
回答
131
被采纳
0
关注TA
发私信
相关问题
1
RTT1.0,STM32调试时会跑到HardFault【已解决】,出现新问题
2
新手请教关于hardfault怎么查
3
github最新版本库中stm32f0X分支,运行切换任务时候出现hardfault[已解决]
4
实现iap功能,bootloader使用了rtt操作系统,在跳转到app代码的时候提示出现hardfault的问题
5
ymodem在on_begin内发送can无法断开连接,而且RTT会报hardfault
6
挂载UFFS文件系统执行到退出_BuildTreeStepOne函数时hardfault异常
7
STM32F1+RTT串口接收中断进入hardfault
8
STM32F746NG随机进入hardfault(已解决)
9
[已解决]自已建了个STM32F103的MDK工程,初始化时总是进入HardFault,求教!
10
将 Cortex M3 的 hardfault 处理与 M4、M7、M0 保持一致?
推荐文章
1
RT-Thread应用项目汇总
2
玩转RT-Thread系列教程
3
国产MCU移植系列教程汇总,欢迎查看!
4
机器人操作系统 (ROS2) 和 RT-Thread 通信
5
五分钟玩转RT-Thread新社区
6
【技术三千问】之《玩转ART-Pi》,看这篇就够了!干货汇总
7
关于STM32H7开发板上使用SDIO接口驱动SD卡挂载文件系统的问题总结
8
STM32的“GPU”——DMA2D实例详解
9
RT-Thread隐藏的宝藏之completion
10
【ART-PI】RT-Thread 开启RTC 与 Alarm组件
最新文章
1
【24嵌入式设计大赛】基于RT-Thread星火一号的智慧家居系统
2
RT-Thread EtherKit开源以太网硬件正式发布
3
如何在master上的BSP中添加配置yml文件
4
使用百度AI助手辅助编写一个rt-thread下的ONVIF设备发现功能的功能代码
5
RT-Thread 发布 EtherKit开源以太网硬件!
热门标签
RT-Thread Studio
串口
Env
LWIP
SPI
AT
Bootloader
Hardfault
CAN总线
FinSH
ART-Pi
USB
DMA
文件系统
RT-Thread
SCons
RT-Thread Nano
线程
MQTT
STM32
RTC
FAL
rt-smart
ESP8266
I2C_IIC
WIZnet_W5500
UART
ota在线升级
PWM
cubemx
freemodbus
flash
packages_软件包
BSP
潘多拉开发板_Pandora
定时器
ADC
GD32
flashDB
socket
中断
Debug
编译报错
msh
SFUD
keil_MDK
rt_mq_消息队列_msg_queue
MicroPython
ulog
C++_cpp
本月问答贡献
踩姑娘的小蘑菇
7
个答案
3
次被采纳
a1012112796
16
个答案
2
次被采纳
张世争
9
个答案
2
次被采纳
rv666
5
个答案
2
次被采纳
用户名由3_15位
13
个答案
1
次被采纳
本月文章贡献
程序员阿伟
9
篇文章
2
次点赞
hhart
3
篇文章
4
次点赞
大龄码农
1
篇文章
5
次点赞
RTT_逍遥
1
篇文章
2
次点赞
ThinkCode
1
篇文章
1
次点赞
回到
顶部
发布
问题
分享
好友
手机
浏览
扫码手机浏览
投诉
建议
回到
底部