求助一下esp32 BLE问题-Arduino中文社区 - Powered by Discuz! Archiver

Fosky 发表于 2021-7-24 21:03

求助一下esp32 BLE问题

芯片为ESP-WROOM-32,IO口一个都没连接
class MyAdvertisedDeviceCallbacks: public BLEAdvertisedDeviceCallbacks {

      void onResult(BLEAdvertisedDevice advertisedDevice) {

               Serial.printf("Advertised Device: %s \n", advertisedDevice.toString().c_str());

               //Serial.printf("Rssi: %s \n", advertisedDevice.getRSSI());

                Serial.printf("Address: %s \n", advertisedDevice.getAddress().toString().c_str());这是我在arduino中编写的部分代码
只要我把注释去掉再上传
便会出现以下报错
20:58:00.305 ->
20:58:00.305 -> rst:0xc (SW_CPU_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
20:58:00.305 -> configsip: 0, SPIWP:0xee
20:58:00.305 -> clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
20:58:00.305 -> mode:DIO, clock div:1
20:58:00.305 -> load:0x3fff0018,len:4
20:58:00.305 -> load:0x3fff001c,len:1216
20:58:00.305 -> ho 0 tail 12 room 4
20:58:00.305 -> load:0x40078000,len:9720
20:58:00.305 -> ho 0 tail 12 room 4
20:58:00.305 -> load:0x40080400,len:6352
20:58:00.305 -> entry 0x400806b8
20:58:00.633 -> Scanning...
20:58:01.533 -> Advertised Device: Name: , Address:xxx :, serviceUUID: xxx
20:58:01.533 -> Guru Meditation Error: Core0 panic'ed (LoadProhibited). Exception was unhandled.
20:58:01.533 -> Core 0 register dump:
20:58:01.533 -> PC      : 0x400014dcPS      : 0x00060c30A0      : 0x800ea260A1      : 0x3ffcea00
20:58:01.533 -> A2      : 0xffffffabA3      : 0xffffffa7A4      : 0x000000ffA5      : 0x0000ff00
20:58:01.533 -> A6      : 0x00ff0000A7      : 0xff000000A8      : 0x462d4100A9      : 0x3ffcedd0
20:58:01.533 -> A10   : 0x3ffc7748A11   : 0x3ffde690A12   : 0x3ffde470A13   : 0x3ffde4ec
20:58:01.533 -> A14   : 0x3ffde20dA15   : 0x3ffde4edSAR   : 0x00000018EXCCAUSE: 0x0000001c
20:58:01.533 -> EXCVADDR: 0xffffffabLBEG    : 0x400014fdLEND    : 0x4000150dLCOUNT: 0xffffffff
20:58:01.533 ->
20:58:01.533 -> Backtrace: 0x400014dc:0x3ffcea00 0x400ea25d:0x3ffcea10 0x400f306e:0x3ffced20 0x400f30a6:0x3ffcedb0 0x400d59ea:0x3ffcedf0 0x400d184f:0x3ffcee90 0x400d4599:0x3ffceee0 0x400d32d6:0x3ffcefd0 0x40100ea9:0x3ffcf020 0x400fc01a:0x3ffcf040 0x4008e089:0x3ffcf070
20:58:01.533 ->
20:58:01.533 -> Rebooting...
20:58:01.575 -> ets Jun8 2016 00:22:57
不断重启,想请教一下什么原因


页: [1]
查看完整版本: 求助一下esp32 BLE问题