Dasduino CONNECTPLUS Bluetooth SerialBT causes SW_CPU_RESET crash

Customer:

I encountered a problem when trying to connect a Dasduino CONNECTPLUS board to Bluetooth using the “SerialToSerialBT” example from the Arduino IDE. I cannot find a solution online.

Here is the code:

//This example code is in the Public Domain (or CC0 licensed, at your option.)
//By Evandro Copercini – 2018
//
//This example creates a bridge between Serial and Classical Bluetooth (SPP)
//and also demonstrate that SerialBT have the same functionalities of a normal Serial

#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);
}

This is what appears in the Serial Monitor:

Backtrace: 0x400def30:0x3ffcffb0 0x400df5ce:0x3ffd0000 0x400d5969:0x3ffd0020 0x4008f49e:0x3ffd0050
Rebooting…
ets Jul 29 2019 12:21:46
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
Original message (Croatian)

Dobar dan.

Naišao sam na problem kada sam pokušavao spojiti pločicu Dasduino CONNECTPLUS na Bluetooth na primjeru “SerialToSerialBT” iz aplikacije Arduino IDE. Svaka pomoć bi mi bila korisna jer na internetu ne mogu naći riješenje. Hvala.

Ovako glasi kod:

//This example code is in the Public Domain (or CC0 licensed, at your option.)

//By Evandro Copercini – 2018

//

//This example creates a bridge between Serial and Classical Bluetooth (SPP)

//and also demonstrate that SerialBT have the same functionalities of a normal Serial

#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);

}

A ovo mi izbaci u Serial Monitoru:

Backtrace: 0x400def30:0x3ffcffb0 0x400df5ce:0x3ffd0000 0x400d5969:0x3ffd0020 0x4008f49e:0x3ffd0050

Rebooting…

ets Jul 29 2019 12:21:46

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

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

Soldered Support:

There is a bug if you are using our board definition—it is outdated and causes the ESP to constantly crash and attempt to restart. You can work around this by using the ESP32 Wrover board definition instead. Download it easily by copying their link into Arduino Preferences and downloading the new boards.

Now select ESP32 Wrover instead of the Dasduino ConnectPlus board and it should work. Dasduino has an ESP32 chip on board, so it is largely similar and there should be no compatibility issues.

Original message (Croatian)

Postoji bug ukoliko koristite naš board definition, malo je zastario pa se ESP konstantno ruši i pokušava ponovno pokrenuti.
Možete to zaobići koristeći ESP32 Wrover board definition. Preuzimanje jel lako, samo kopirate njihov link u Arduino Preferences i preuzmete nove boardove, evo i link.
Sada umjesto Dasduino ConnectPlus boarda odaberete ESP32 Wrover i trebalo bi raditi. Dasduino na sebi ima ESP32 čip pa je to manje više slično i nebi trebalo biti problema po pitanju kompatibilnosti.