Dasduino ConnectPlus BluetoothSerial.begin() crashes with LoadProhibited error

Customer:

I’m trying to use the BluetoothSerial library on the ConnectPlus microcontroller, but the SerialBT.begin(“…”) call crashes immediately with a LoadProhibited error. I’m using the latest version of the board definition from GitHub.

I’ve isolated the error in this code:

#include <BluetoothSerial.h>

BluetoothSerial SerialBT;

void setup() {
  Serial.begin(115200);
  SerialBT.begin("Test");
}

void loop() {
  if (SerialBT.available()) {
    Serial.println(SerialBT.read());
  }
}

Boot log:

rst:0xc (SW_CPU_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:2
load:0x3fff0018,len:4
load:0x3fff001c,len:1100
load: ,len:10900
load: ,len:6360
entry 0x400806b4
Guru Meditation Error: Core 0 panic'ed (LoadProhibited). Exception was unhandled.
Core 0 register dump:
PC : 0x400dedc0 PS : A0 : 0x800df461 A1 : 0x3ffd00e0
A2 : 0x3ffdea48 A3 : 0x3ffd0158 A4 : A5 :
A6 : A7 : A8 : A9 : 0x3ffd00e0
A10 : A11 : A12 : A13 : 0x3ffd0160
A14 : 0x000f0000 A15 : 0x3ffdea15 SAR : EXCCAUSE: 0x0000001c
EXCVADDR: 0x0000002c LBEG : 0x4000c2e0 LEND : 0x4000c2f6 LCOUNT : 0xffffffff
ELF file SHA256:
Backtrace: 0x400dedc0:0x3ffd00e0 0x400df45e:0x3ffd0130 0x400d57f9:0x3ffd0150 0x4008f49e:0x3ffd0180

Originally submitted via email support on 9 April 2023. Migrated to the forum for community visibility.

Soldered Support:

There is a bug in the ConnectPlus board definition that causes this crash. As a workaround, you can use the ESP32 board definition instead. The Dasduino ConnectPlus contains only the ESP32 module, so using the standard ESP32 board definition will work without any issues. Select “ESP32 Wrover” as the board before uploading your code.

Original message (Croatian)

hvala Vam na upitu.

Stari forum više nije aktivan te aktivno radimo na novome koje će uskoro biti aktivan na našem webu. Do tada, budite slobodni sva tehnička pitanja postaviti ovdje.

Što se tiče greške, postoji bug u našem board definitionu. To su poruke od ESP-a koji se sruši kada naiđe na taj dio koda.
Dok ne riješimo problem možete koristiti board definition za ESP32 kojeg možete instalirati ovako. Prije uploada koda samo odaberete board ESP32 Wrover i onda bi trebalo raditi.
Na Dasduinu se nalazi sam ESP32 modul pa se može koristiti board definition za ESP32, neće biti nikakvih problema.