[已解决] 编译V4.2.2例程中的blufi,蓝牙配网不能连接

User avatar
山竹君_kk
Posts: 17
Joined: Mon Nov 01, 2021 2:33 am

[已解决] 编译V4.2.2例程中的blufi,蓝牙配网不能连接

Postby 山竹君_kk » Mon Nov 01, 2021 6:53 am

ESP32-WROOM-E3的HelloBug开发板。编译烧录的master分支V4.2.2中的blufi例程。编译烧录成功,程序也正常运行,但只要我用官方espblufi配网软件配网就会导致板子重启,不知道什么问题。从log来看是queue.c中的configASSERT( pxQueue );这。但是完全没头绪


  1. I (910) phy: phy_version: 4182, f1ba940, Jun  4 2020, 19:40:07, 0, 0
  2. I (910) wifi:mode : sta (a8:03:2a:e6:d3:00)
  3. I (910) BTDM_INIT: BT controller compile version [c293075]
  4. I (1240) BLUFI_EXAMPLE: BD ADDR: a8:03:2a:e6:d3:02
  5.  
  6. I (1240) BLUFI_EXAMPLE: BLUFI VERSION 0102
  7.  
  8. I (1250) BLUFI_EXAMPLE: BLUFI init finish
  9.  
  10. [color=#FF4000]I (22150) BLUFI_EXAMPLE: BLUFI ble connect
  11.  
  12. D:/ESP32/esp-idf-v4.2/components/freertos/queue.c:1447 (xQueueGenericReceive)- assert failed!
  13.  
  14. abort() was called at PC 0x40090f2d on core 0
  15. 0x40090f2d: xQueueGenericReceive at D:/ESP32/esp-idf-v4.2/components/freertos/queue.c:1447 (discriminator 1)
  16.  
  17.  
  18. Backtrace:0x4008db27:0x3ffd7a60 0x4008e1c5:0x3ffd7a80 0x40094ea2:0x3ffd7aa0 0x40090f2d:0x3ffd7b10 0x400eef0d:0x3ffd7b50 0x400f9470:0x3ffd7b70 0x400f0a09:0x3ffd7b90 0x400f0890:0x3ffd7bd0 0x400f098e:0x3ffd7c00 0x400edeb6:0x3ffd7c20 0x400eefc0:0x3ffd7c40 0x4008e1cd:0x3ffd7c60
  19. 0x4008db27: panic_abort at D:/ESP32/esp-idf-v4.2/components/esp_system/panic.c:330
  20.  
  21. 0x4008e1c5: esp_system_abort at D:/ESP32/esp-idf-v4.2/components/esp_system/system_api.c:106
  22.  
  23. 0x40094ea2: abort at D:/ESP32/esp-idf-v4.2/components/newlib/abort.c:46
  24.  
  25. 0x40090f2d: xQueueGenericReceive at D:/ESP32/esp-idf-v4.2/components/freertos/queue.c:1447 (discriminator 1)
  26.  
  27. 0x400eef0d: osi_mutex_lock at D:/ESP32/esp-idf-v4.2/components/bt/common/osi/mutex.c:49
  28.  
  29. 0x400f9470: btc_config_lock at D:/ESP32/esp-idf-v4.2/components/bt/host/bluedroid/btc/core/btc_config.c:333
  30.  
  31. 0x400f0a09: btc_storage_remove_bonded_device at D:/ESP32/esp-idf-v4.2/components/bt/host/bluedroid/btc/core/btc_storage.c:158
  32.  
  33. 0x400f0890: btc_dm_link_up_evt at D:/ESP32/esp-idf-v4.2/components/bt/host/bluedroid/btc/core/btc_dm.c:315
  34.  
  35. 0x400f098e: btc_dm_sec_cb_handler at D:/ESP32/esp-idf-v4.2/components/bt/host/bluedroid/btc/core/btc_dm.c:702
  36.  
  37. 0x400edeb6: btc_thread_handler at D:/ESP32/esp-idf-v4.2/components/bt/common/btc/core/btc_task.c:158
  38.  
  39. 0x400eefc0: osi_thread_run at D:/ESP32/esp-idf-v4.2/components/bt/common/osi/thread.c:68
  40.  
  41. 0x4008e1cd: vPortTaskWrapper at D:/ESP32/esp-idf-v4.2/components/freertos/xtensa/port.c:143
  42.  
  43.  
  44.  
  45. ELF file SHA256: 1142e5d493fd9cf0[/color]
  46.  
  47. Rebooting...
  48. ets Jul 29 2019 12:21:46
  49.  
  50. rst:0xc (SW_CPU_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
  51. configsip: 0, SPIWP:0xee
  52. clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
  53. mode:DIO, clock div:2
  54. load:0x3fff0030,len:4
  55. load:0x3fff0034,len:7084
  56. load:0x40078000,len:13696
  57. load:0x40080400,len:4000
  58. 0x40080400: _init at ??:?
  59.  
  60. entry 0x40080688
  61. I (29) boot: ESP-IDF v4.2-dev-1995-g636b964c8 2nd stage bootloader
  62. I (29) boot: compile time 14:19:25
  63. I (29) boot: chip revision: 3
  64. I (34) boot_comm: chip revision: 3, min. bootloader chip revision: 0
  65. I (41) boot.esp32: SPI Speed      : 40MHz
  66. I (45) boot.esp32: SPI Mode       : DIO
  67. I (50) boot.esp32: SPI Flash Size : 2MB
  68. I (54) boot: Enabling RNG early entropy source...
  69. I (60) boot: Partition Table:
  70. I (63) boot: ## Label            Usage          Type ST Offset   Length
  71. I (71) boot:  0 nvs              WiFi data        01 02 00009000 00006000
  72. I (78) boot:  1 phy_init         RF data          01 01 0000f000 00001000
  73. I (86) boot:  2 factory          factory app      00 00 00010000 00100000
  74. I (93) boot: End of partition table
  75. I (97) boot_comm: chip revision: 3, min. application chip revision: 0
  76. I (104) esp_image: segment 0: paddr=0x00010020 vaddr=0x3f400020 size=0x24258 (148056) map
  77. I (170) esp_image: segment 1: paddr=0x00034280 vaddr=0x3ffbdb60 size=0x04098 ( 16536) load
  78. I (177) esp_image: segment 2: paddr=0x00038320 vaddr=0x40080000 size=0x00404 (  1028) load
  79. 0x40080000: _WindowOverflow4 at D:/ESP32/esp-idf-v4.2/components/freertos/xtensa/xtensa_vectors.S:1730
  80.  
  81. I (177) esp_image: segment 3: paddr=0x0003872c vaddr=0x40080404 size=0x078ec ( 30956) load
  82. I (199) esp_image: segment 4: paddr=0x00040020 vaddr=0x400d0020 size=0xa93c4 (693188) map
  83. 0x400d0020: _stext at ??:?
  84.  
  85. I (463) esp_image: segment 5: paddr=0x000e93ec vaddr=0x40087cf0 size=0x15474 ( 87156) load
  86. 0x40087cf0: r_rwbt_isr at ??:?
  87.  
  88. I (516) boot: Loaded app from partition at offset 0x10000
  89. I (517) boot: Disabling RNG early entropy source...
  90. I (517) cpu_start: Pro cpu up.
  91. I (521) cpu_start: Application information:
  92. I (525) cpu_start: Project name:     blufi_demo
  93. I (531) cpu_start: App version:      1
  94. I (535) cpu_start: Compile time:     Nov  1 2021 14:19:10
  95. I (541) cpu_start: ELF file SHA256:  1142e5d493fd9cf0...
  96. I (547) cpu_start: ESP-IDF:          v4.2-dev-1995-g636b964c8
  97. I (554) cpu_start: Starting app cpu, entry point is 0x400818d8
  98. 0x400818d8: call_start_cpu1 at D:/ESP32/esp-idf-v4.2/components/esp32/cpu_start.c:282
  99.  
  100. I (546) cpu_start: App cpu up.
  101. I (564) heap_init: Initializing. RAM available for dynamic allocation:
  102. I (571) heap_init: At 3FFAFF10 len 000000F0 (0 KiB): DRAM
  103. I (577) heap_init: At 3FFB6388 len 00001C78 (7 KiB): DRAM
  104. I (583) heap_init: At 3FFB9A20 len 00004108 (16 KiB): DRAM
  105. I (589) heap_init: At 3FFCC6C8 len 00013938 (78 KiB): DRAM
  106. I (596) heap_init: At 3FFE0440 len 00003AE0 (14 KiB): D/IRAM
  107. I (602) heap_init: At 3FFE4350 len 0001BCB0 (111 KiB): D/IRAM
  108. I (608) heap_init: At 4009D164 len 00002E9C (11 KiB): IRAM
  109. I (614) cpu_start: Pro cpu start user code
  110. I (633) spi_flash: detected chip: generic
  111. I (634) spi_flash: flash io: dio
  112. W (634) spi_flash: Detected size(4096k) larger than the size in the binary image header(2048k). Using the size in the binary image header.
  113. I (644) cpu_start: Starting scheduler on PRO CPU.
  114. I (0) cpu_start: Starting scheduler on APP CPU.
  115. I (750) wifi:wifi driver task: 3ffd124c, prio:23, stack:6656, core=0
  116. I (750) system_api: Base MAC address is not set
  117. I (750) system_api: read default base MAC address from EFUSE
  118. I (770) wifi:wifi firmware version: 9f3395e
  119. I (770) wifi:wifi certification version: v7.0
  120. I (770) wifi:config NVS flash: enabled
  121. I (770) wifi:config nano formating: disabled
  122. I (780) wifi:Init data frame dynamic rx buffer num: 32
  123. I (780) wifi:Init management frame dynamic rx buffer num: 32
  124. I (790) wifi:Init management short buffer num: 32
  125. I (790) wifi:Init dynamic tx buffer num: 32
  126. I (800) wifi:Init static rx buffer size: 1600
  127. I (800) wifi:Init static rx buffer num: 10
  128. I (810) wifi:Init dynamic rx buffer num: 32
  129. I (910) phy: phy_version: 4182, f1ba940, Jun  4 2020, 19:40:07, 0, 0
  130. I (910) wifi:mode : sta (a8:03:2a:e6:d3:00)
  131. I (920) BTDM_INIT: BT controller compile version [c293075]
  132. I (1240) BLUFI_EXAMPLE: BD ADDR: a8:03:2a:e6:d3:02
  133.  
  134. I (1250) BLUFI_EXAMPLE: BLUFI VERSION 0102
  135.  
  136. I (1250) BLUFI_EXAMPLE: BLUFI init finish
  137.  
Last edited by 山竹君_kk on Thu Nov 04, 2021 2:31 am, edited 1 time in total.

ESP_ICY
Posts: 404
Joined: Mon Aug 23, 2021 11:10 am

Re: 编译V4.2.2例程中的blufi,蓝牙配网不能连接

Postby ESP_ICY » Wed Nov 03, 2021 2:57 am

你这边降低下idf版本到4.1看看,可能4.2版本和blufi的兼容性没有那么稳定

User avatar
山竹君_kk
Posts: 17
Joined: Mon Nov 01, 2021 2:33 am

Re: 编译V4.2.2例程中的blufi,蓝牙配网不能连接

Postby 山竹君_kk » Thu Nov 04, 2021 2:30 am

  1. 更新到4.2.2就可以了,解决了

Who is online

Users browsing this forum: Google [Bot] and 84 guests