After loading a code with the BluetoothSerial.h library it does not work, a light flashes all the time and in the console I get this error:
Guru Meditation Error: Core 0 panic'ed (LoadProhibited). Exception was unhandled.
Core 0 register dump:
PC : 0x400def30 PS : 0x00060730 A0 : 0x800df5d1 A1 : 0x3ffcfe90
A2 : 0x3ffde814 A3 : 0x3ffcff08 A4 : 0x00000001 A5 : 0x00000001
A6 : 0x00060920 A7 : 0x00000000 A8 : 0x00000000 A9 : 0x3ffcfe90
A10 : 0x00000003 A11 : 0x00060923 A12 : 0x00060920 A13 : 0x3ffcff10
A14 : 0x000f1400 A15 : 0x3ffde814 SAR : 0x0000001a EXCCAUSE: 0x0000001c
EXCVADDR: 0x0000002c LBEG : 0x4000c2e0 LEND : 0x4000c2f6 LCOUNT : 0xffffffff
ELF file SHA256: 0000000000000000
Backtrace: 0x400def30:0x3ffcfe90 0x400df5ce:0x3ffcfee0 0x400d5969:0x3ffcff00 0x4008f49e:0x3ffcff30
Rebooting...
Error with esp32 and BluetoothSerial.h library
-
- Posts: 9730
- Joined: Thu Nov 26, 2015 4:08 am
Re: Error with esp32 and BluetoothSerial.h library
- Can you post the source code?
- Can you decode that backtrace? https://github.com/me-no-dev/EspExceptionDecoder
- Can you decode that backtrace? https://github.com/me-no-dev/EspExceptionDecoder
Re: Error with esp32 and BluetoothSerial.h library
Hello, this is the exception:ESP_Sprite wrote: ↑Tue Dec 01, 2020 2:12 am- Can you post the source code?
- Can you decode that backtrace? https://github.com/me-no-dev/EspExceptionDecoder
Code: Select all
PC: 0x400def30: btc_spp_init at /Users/ficeto/Desktop/ESP32/ESP32/esp-idf-public/components/bt/bluedroid/btc/profile/std/spp/btc_spp.c line 366
EXCVADDR: 0x0000002c
Decoding stack results
0x400def30: btc_spp_init at /Users/ficeto/Desktop/ESP32/ESP32/esp-idf-public/components/bt/bluedroid/btc/profile/std/spp/btc_spp.c line 366
0x400df5ce: btc_spp_call_handler at /Users/ficeto/Desktop/ESP32/ESP32/esp-idf-public/components/bt/bluedroid/btc/profile/std/spp/btc_spp.c line 633
0x400d5969: btc_task at /Users/ficeto/Desktop/ESP32/ESP32/esp-idf-public/components/bt/common/btc/core/btc_task.c line 138
0x4008f49e: vPortTaskWrapper at /Users/ficeto/Desktop/ESP32/ESP32/esp-idf-public/components/freertos/port.c line 143
Code: Select all
#include "BluetoothSerial.h"
#if !defined(CONFIG_BT_ENABLED) || !defined(CONFIG_BLUEDROID_ENABLED)
#error Bluetooth is not enabled! Please run `make menuconfig` to and enable it
#endif
BluetoothSerial SerialBT;
void setup() {
Serial.begin(115200);
SerialBT.begin("ESP32test"); //Bluetooth device name
Serial.println("The device started, now you can pair it with bluetooth!");
}
void loop() {
if (Serial.available()) {
SerialBT.write(Serial.read());
}
if (SerialBT.available()) {
Serial.write(SerialBT.read());
}
delay(20);
}
Who is online
Users browsing this forum: No registered users and 70 guests