Skip to content

random reboot for BLE assert #1

@wang33winner

Description

@wang33winner

Checklist

  • Checked the issue tracker for similar issues to ensure this is not a duplicate
  • Read the documentation to confirm the issue is not addressed there and your configuration is set correctly
  • Tested with the latest version to ensure the issue hasn't been fixed

How often does this bug occurs?

often

Expected behavior

芯片正常运行不会随机重启
run normally without rebooting

Actual behavior (suspected bug)

会不定期(几个小时到几天不等)报以下错误并重启

reboot random in several hours or days with error logs below:

Error logs or terminal output

BLE assert: line 523 in function r_ble_phy_isr, param: 0x0, 0x0
assert failed: osi_assert_wrapper bt.c:437 (0)
Core  0 register dump:
MEPC    : 0x4080073c  RA      : 0x4080e2da  SP      : 0x4081f420  GP      : 0x4081b3b4  
TP      : 0x4082a380  T0      : 0x37363534  T1      : 0x7271706f  T2      : 0x33323130  
S0/FP   : 0x00000001  S1      : 0x00000099  A0      : 0x4081f474  A1      : 0x4081d961  
A2      : 0x00000001  A3      : 0x00000029  A4      : 0x00000001  A5      : 0x40824000  
A6      : 0x0000000c  A7      : 0x76757473  S2      : 0x4081f468  S3      : 0x4081f56e  
S4      : 0x4081d960  S5      : 0x4081f468  S6      : 0x420f20d4  S7      : 0x00000000  
S8      : 0x00000000  S9      : 0x00000000  S10     : 0x00000000  S11     : 0x00000000  
T3      : 0x6e6d6c6b  T4      : 0x6a696867  T5      : 0x66656463  T6      : 0x62613938  
MSTATUS : 0x00001881  MTVEC   : 0x40800001  MCAUSE  : 0x00000007  MTVAL   : 0x00000000  
MHARTID : 0x00000000  

Stack memory:
4081f420: 0x00000000 0x00000000 0x420fe618 0x4081505c 0x00000000 0x00000000 0x00000000 0x00373334
4081f440: 0x00000000 0x4081dadc 0x420fe618 0x4081daec 0x420edd43 0x4081daf0 0x4081f43c 0x4081daf4
4081f460: 0x420f20d4 0x4081d960 0x00000000 0x00000000 0x00000000 0x65737361 0x66207472 0x656c6961
4081f480: 0x6f203a64 0x615f6973 0x72657373 0x72775f74 0x65707061 0x74622072 0x343a632e 0x28203733
4081f4a0: 0x00002930 0x0000003e 0xfffffffe 0x4001924e 0x40846d80 0x4082bbe4 0x00000000 0x40808b0c
4081f4c0: 0x00330030 0x00000000 0x00000000 0xf9cfca43 0x00000001 0x00000000 0x00000000 0x00060000
4081f4e0: 0x9ff5f000 0x600a5000 0x600a4ffc 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000
4081f500: 0x00000000 0x00000000 0x00000000 0x00000001 0x00001881 0x8000000f 0x00008095 0x400193a6
4081f520: 0x00003e68 0xf9dcf6a0 0x00003e6c 0x00025a48 0x00000000 0x40800000 0x000fffff 0x763b2d61
4081f540: 0x00003e8c 0x40846d80 0x40846d80 0x00000000 0x00000000 0x00000000 0x00000000 0x00000001
4081f560: 0x00001881 0x8000000f 0x00008095 0x40802e86 0x00001881 0x8000000f 0x00008095 0x4080a60e
4081f580: 0x00000000 0x00000000 0x00000000 0x00000001 0x00001881 0x8000000f 0x40824000 0x4080026a
4081f5a0: 0x6000a000 0x4080cca6 0x4080ccb2 0x00000000 0x4081f5ac 0x00000000 0x00000000 0x00000000
4081f5c0: 0x4081f5c4 0xffffffff 0x4081f5c4 0x4081f5c4 0x00000000 0x4081f5d8 0xffffffff 0x4081f5d8
4081f5e0: 0x4081f5d8 0x00000001 0x00000001 0x00000000 0x0001ffff 0x00000000 0x00000000 0x00000004
4081f600: 0x00000000 0x00000000 0x00000000 0x4081f608 0x00000000 0x00000000 0x00000000 0x4081f620
4081f620: 0xffffffff 0x4081f620 0x4081f620 0x00000000 0x4081f634 0xffffffff 0x4081f634 0x4081f634
4081f640: 0x00000001 0x00000001 0x00000000 0x0001ffff 0x00000000 0x00000000 0x00000001 0x00000000
4081f660: 0x00000000 0x6000a000 0x4080cca6 0x4080ccb2 0x40826e0c 0x40826ed0 0x40828dac 0x00000000
4081f680: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000001 0x00000000 0x00000000 0x00000000
4081f6a0: 0x00000000 0x00000000 0x00000000 0x00000000 0x004d4700 0x00000000 0x00000000 0x40834478
4081f6c0: 0x540ce86a 0x00000002 0x30303031 0x36363030 0x00363636 0x00000000 0x00000000 0x4fca4c40
4081f6e0: 0x30348448 0x3a63343a 0x343a6163 0x38343a66 0x0034383a 0x00000000 0x40834488 0x00000000
4081f700: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000
4081f720: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000
4081f740: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000
4081f760: 0x00000000 0x69666977 0x6574692e 0x00302e6d 0x00000000 0x00000000 0x00000000 0x00000000
4081f780: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000
4081f7a0: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000
4081f7c0: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000
4081f7e0: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000
4081f800: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000

Steps to reproduce the behavior

sdkconfig.zip

  1. with wifi and ble(as central) software coexistence (WiFi和BLE客户端模式同时存在)
  2. ble_gap_ext_disc continously (持续扫描模式)
  3. wifi ap not exist (对应的WiFi热点未打开,持续提醒 disconnected from AP:xxx, reson:201 wifi:Coexist: Wi-Fi connect fail, apply reconnect coex policy)
  4. connect to one ble devices and communicate about once at 30s (连接到一个BLE设备,并大概30秒和这个设备通讯一次)
  5. reboot random in several hours or days with error logs below (不定期报错并重启)

Project release version

idf v5.3.1

System architecture

other (details in Additional context)

Operating system

Linux

Operating system version

Debian

Shell

other (details in Additional context)

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions