Skip to content

ESP-C3 Serial bluetooth won't build due to undefined references #6422

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
1 task done
AcuarioCat opened this issue Mar 13, 2022 · 2 comments · Fixed by #6455
Closed
1 task done

ESP-C3 Serial bluetooth won't build due to undefined references #6422

AcuarioCat opened this issue Mar 13, 2022 · 2 comments · Fixed by #6455

Comments

@AcuarioCat
Copy link

Board

ESP-C3-32S

Device Description

NodeMCU

Hardware Configuration

Board not connected to anything.

Version

v2.0.2

IDE Name

Visual Micro

Operating System

Windows 11

Flash frequency

80MHz

PSRAM enabled

no

Upload speed

921600

Description

undefined references when building with ESP-C3

Works fine when building with ESP32

Sketch

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

Debug Message

ld.exe: BluetoothSerial\BluetoothSerial.cpp.o: in function .L0
BluetoothSerial.cpp:651: undefined reference to esp_spp_disconnect
 
ld.exe: BluetoothSerial\BluetoothSerial.cpp.o: in function _stop_bt
BluetoothSerial.cpp:652: undefined reference to esp_spp_deinit
 
ld.exe: BluetoothSerial\BluetoothSerial.cpp.o: in function .LVL35
BluetoothSerial.cpp:253: undefined reference to esp_bt_gap_set_scan_mode
 
ld.exe: BluetoothSerial\BluetoothSerial.cpp.o: in function esp_spp_cb
BluetoothSerial.cpp:259: undefined reference to esp_spp_start_srv

Other Steps to Reproduce

No response

I have checked existing issues, online documentation and the Troubleshooting Guide

  • I confirm I have checked existing issues, online documentation and Troubleshooting guide.
@AcuarioCat AcuarioCat added the Status: Awaiting triage Issue is waiting for triage label Mar 13, 2022
@lbernstone
Copy link
Contributor

ESP32-C3 does not include a classic bluetooth device, it is BLE only.

@AcuarioCat
Copy link
Author

Just found that - a shame!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants