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.