Xiao ESP32C3 Compile Error (could not convert ‘&Serial’ from ‘HWCDC*’ to ‘HardwareSerial*’)

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*’)

Viewing 1 reply thread
  • Author
    Posts
    • #29538
      Traff
      Participant

        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,

      • #29540
        Renzo Mischianti
        Keymaster

          Hi Traff,
          you must disable the
          USB CDC On Boot
          parameter on the IDE.
          Comment also the SoftwareSerial option on the library.
          Bye Renzo

      Viewing 1 reply thread
      • You must be logged in to reply to this topic.
      Exit mobile version