10 调试bc26 ,断言错误failed at rt_thread_timeout

发布于 2020-09-30 11:46:46

使用STM32F103RCT6,BSP生成工程。bc26初始化成功。MQTT启动,然后发生(rt_object_get_type((rt_object_t)thread) == RT_Object_Class_Thread) has assert failed at rt_thread_timeout:816.

不明白是什么原因引起的,如何排查问题及修改?

 \ | /
- RT -     Thread Operating System
 / | \     4.0.2 build Sep 30 2020
 2006 - 2019 Copyright by rt-thread team
[I/drv.rtc] RTC hasn't been configured, please use <date> command to config.
[I/at.svr] RT-Thread AT server (V1.3.0) initialize success.
[I/sal.skt] Socket Abstraction Layer initialize success.
spi1 init ok!
[I/at.clnt] AT client(V1.3.0) on device uart1 initialize success.
msh />routingController_thread_entry RUN! 
[E/at.dev.bc26] bc26 device prase "AT+QIDNSCFG=1" cmd error.
[I/at.dev.bc26] bc26 device network initialize success.
[D/mqtt.sample] inter mqtt_connect_callback!
[D/mqtt] ipv4 address port: 45135
[D/mqtt] HOST = '103.46.128.45'
[E/at.clnt] execute command (AT+QIOPEN=1,0,"TCP","103.46.128.45",45135,0,1) failed!
[E/mqtt] connect err!
         pri  status      sp     stack size max used left tick  error
-------- ---  ------- ---------- ----------  ------  ---------- ---
mqtt0     10  suspend 0x00000184 0x00001000    13%   0x00000002 000
bc26      30  suspend 0x0000008c 0x00000600    21%   0x00000013 000
mqtt_cli   5  suspend 0x0000007c 0x00000800    17%   0x00000014 000
routingC  16  suspend 0x00000078 0x00000800    09%   0x00000010 000
tshell    20  suspend 0x0000013c 0x00001000    07%   0x0000000a 000
at_clnt    9  suspend 0x000000ac 0x00000600    11%   0x00000004 000
temp       4  suspend 0x00000078 0x00000400    11%   0x00000009 000


(rt_object_get_type((rt_object_t)thread) == RT_Object_Class_Thread) has assert failed at rt_thread_timeout:816.

Firmware name: rtthread, hardware version: 1.0, software version: 1.0

Assert on interrupt or bare metal(no OS) environment

===== Thread stack information =====

  addr: 200034f0    data: 00000001
  addr: 200034f4    data: 08027ad8
  addr: 200034f8    data: 08025ff4
  addr: 200034fc    data: 00000330
  addr: 20003500    data: deadbeef
  addr: 20003504    data: 0801c4d3
  addr: 20003508    data: 00000000
  addr: 2000350c    data: 20005f0c
  addr: 20003510    data: 20005f0c
  addr: 20003514    data: 00000000
  addr: 20003518    data: deadbeef
  addr: 2000351c    data: 0802116b
  addr: 20003520    data: 20005f58
  addr: 20003524    data: 00001867
  addr: 20003528    data: 00000000
  addr: 2000352c    data: 080212af
  addr: 20003530    data: 20000c98
  addr: 20003534    data: deadbeef
  addr: 20003538    data: deadbeef
  addr: 2000353c    data: 08021261
  addr: 20003540    data: 00000004
  addr: 20003544    data: 08007693
  addr: 20003548    data: 00000004
  addr: 2000354c    data: fffffffd
  addr: 20003550    data: 20003570
  addr: 20003554    data: 10000000
  addr: 20003558    data: 00000000
  addr: 2000355c    data: 20000ec8
  addr: 20003560    data: 0000000a
  addr: 20003564    data: 0802098b
  addr: 20003568    data: 08000398
  addr: 2000356c    data: 21000000
====================================

Show more call stack info by run: addr2line -e rtthread.axf -a -f 0801c4d2 0802116a 080212ae 08021260 08007692 0802098a 

Current system tick: 6247

查看更多

关注者
0
被浏览
161
JQRR_7669
JQRR_7669 认证专家 2020-09-30

mqtt的连接错误处理中出的问题,建议单步跟踪调试,看看问题究竟出在哪?

2 个回答
sANT
sANT 2020-11-18

重新加载了AT、MQTT等组件,没有错误了

撰写答案

请登录后再发布答案,点击登录

发布
问题

分享
好友

手机
浏览

扫码手机浏览