ESP32-C3 BLE Arduino compile problem
Posted: Wed Oct 20, 2021 10:19 am
Hi.
Using an ESP32-S, I can get the example SerialToSerialBT program to compile in the Arduino IDE and work - no problems. I can happily send and receive data to and from my Samsung S8 phone's .
But I need to use the ESP32-C3. The board is an "ESP32 Dev module" and is physically an Espressif ESP32-C3-DevKitM-1 v1.0 board.
I loaded the "ESP32-C3" board option and try to compile the example SerialToSerialBT and I get compiler errors with many undefined references.
For brevity, I have put in one error entry here...
c:/users/drb/appdata/local/arduino15/packages/esp32/tools/riscv32-esp-elf-gcc/gcc8_4_0-esp-2021r1/bin/../lib/gcc/riscv32-esp-elf/8.4.0/../../../../riscv32-esp-elf/bin/ld.exe: C:\Users\DRB\AppData\Local\Temp\arduino_build_305298\libraries\BluetoothSerial\BluetoothSerial.cpp.o: in function `.L0 ':
C:\Users\DRB\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.0\libraries\BluetoothSerial\src/BluetoothSerial.cpp:651: undefined reference to `esp_spp_deinit'
collect2.exe: error: ld returned 1 exit status
Using library BluetoothSerial at version 2.0.0 in folder: C:\Users\DRB\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.0\libraries\BluetoothSerial
exit status 1
Error compiling for board ESP32C3 Dev Module.
I have no idea what is causing this, other than it is a library problem. Any help here would be much appreciated. Maybe there is limited support for these ESP32-C3 modules in the Arduino IDE environment at this time.
I am wondering whether I should install the ESF-IDF suite and run this in a more conventional IDE where one can set breakpoints and debug code. I don't know how good the ESP-IDF is, but I really don't want to mess around as this project is rather urgent. I will need to drive a SDD1306 based OLED display and do an ADC conversion, so I suspect I should stay with the Arduino IDE due to its popularity and support. Any suggestion here would be welcomed in this regard too.
regards,
David
Using an ESP32-S, I can get the example SerialToSerialBT program to compile in the Arduino IDE and work - no problems. I can happily send and receive data to and from my Samsung S8 phone's .
But I need to use the ESP32-C3. The board is an "ESP32 Dev module" and is physically an Espressif ESP32-C3-DevKitM-1 v1.0 board.
I loaded the "ESP32-C3" board option and try to compile the example SerialToSerialBT and I get compiler errors with many undefined references.
For brevity, I have put in one error entry here...
c:/users/drb/appdata/local/arduino15/packages/esp32/tools/riscv32-esp-elf-gcc/gcc8_4_0-esp-2021r1/bin/../lib/gcc/riscv32-esp-elf/8.4.0/../../../../riscv32-esp-elf/bin/ld.exe: C:\Users\DRB\AppData\Local\Temp\arduino_build_305298\libraries\BluetoothSerial\BluetoothSerial.cpp.o: in function `.L0 ':
C:\Users\DRB\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.0\libraries\BluetoothSerial\src/BluetoothSerial.cpp:651: undefined reference to `esp_spp_deinit'
collect2.exe: error: ld returned 1 exit status
Using library BluetoothSerial at version 2.0.0 in folder: C:\Users\DRB\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.0\libraries\BluetoothSerial
exit status 1
Error compiling for board ESP32C3 Dev Module.
I have no idea what is causing this, other than it is a library problem. Any help here would be much appreciated. Maybe there is limited support for these ESP32-C3 modules in the Arduino IDE environment at this time.
I am wondering whether I should install the ESF-IDF suite and run this in a more conventional IDE where one can set breakpoints and debug code. I don't know how good the ESP-IDF is, but I really don't want to mess around as this project is rather urgent. I will need to drive a SDD1306 based OLED display and do an ADC conversion, so I suspect I should stay with the Arduino IDE due to its popularity and support. Any suggestion here would be welcomed in this regard too.
regards,
David