- This topic has 1 reply, 2 voices, and was last updated 10 months, 3 weeks ago by .
- You must be logged in to reply to this topic.
Home › Forums › The libraries hosted on the site › Library for ABB (ex PowerOne) Aurora Inverter for Arduino, esp32 and esp8266 › Xiao ESP32C3 Compile Error (could not convert ‘&Serial’ from ‘HWCDC*’ to ‘HardwareSerial*’)
Hi,
Thanks for this library, I’ve had it working on a Nano and Nano IOT but when I try with a Xiao ESP32C3 it won’t compile, I get the following error:
Aurora.h:97:63: error: could not convert ‘& Serial’ from ‘HWCDC*’ to ‘HardwareSerial*’
Aurora(byte inverterAddress, HardwareSerial* serial = &Serial, byte serialCommunicationControlPin = SERIAL_COMMUNICATION_CONTROL_PIN);
From the ino:
#include “Arduino.h”
#include <Aurora.h>
//#include <SoftwareSerial.h>
//#include <MemoryFree.h>
//SoftwareSerial mySerial(10, 11); // RX, TX
Aurora inverter = Aurora(2, &Serial1, 5);
//Aurora inverter = Aurora(2, 10, 11, 5);
Any ideas how to resolve?
Thanks,
Hi Traff,
you must disable the
USB CDC On Boot
parameter on the IDE.
Comment also the SoftwareSerial option on the library.
Bye Renzo
More
3D Printer 3D printer upgrade ABB Arduino Arduino IDE Arduino SAMD boards Aurora AWS CNC Cyclone PCB Factory Cyclone PCB Factory how to build It Display E32 E70 EByte esp01 esp32 esp8266 File System Firmware i2c Library LoRa MicroPython Milling PCB My PCB Networking PCB pinout Power saving Programming board Raspberry Pi REST API RF rp2040 SD Card Sensors Sleep and Wake UP SPI STM32 Storage devices Tutorial Web Server Wemos D1 mini WiFi