Closed danolson1 closed 6 months ago
You shouldn't be adding that define. And why does the component require you to use UART0 for a C3?
Anyway, this is an issue with an external component, so it's not an esphome issue. You can come ask on discord, but it's really a question for the provider of that component.
Ok, except that things were working fine with Esphome version 2023.12.5, and seem to have broken when version 2023.12.6 happened. The 2013.12.6 update also included a "ESP32-C3 USB_CDC fix" https://github.com/esphome/esphome/pull/6069
Somehow I think that fix broke things for me.
Also, even though the logs say the external component is generating the error message, I can't seem to find where it's coming from. What file is generating the error text?
<command-line>: warning: "ARDUINO_USB_CDC_ON_BOOT" redefined
<command-line>: note: this is the location of the previous definition
The error is happening because esphome already sets that define as necessary (as part of that change) and you're trying to set it again. That particular issue is from you, not the component. But you're apparently doing that because of the component.
Ok, so if esphome already sets that define, what is the correct way to override it?
Alternatively, is there a way I can set "ARDUINO_USB_MODE=0"?, since I think that the code change where this was set to 1 is what broke things for me.
You shouldn't need to set it. If you do, it's a problem with the component which should be using the esphome framework. But I see you're also modifying the platform versions as well, so you're really out on your own as the warnings already tell you.
The problem
I am trying to upload a yaml file to my ESP32-C3 device and I get the following error message: "warning: "ARDUINO_USB_CDC_ON_BOOT" redefined"
Previously this worked fine. I'm not sure what changed, or where to find more information about this error. If anyone could point me in the right direction, I would appreciate it.
Here is my yaml file (with minor edits to remove passwords, etc.):
Here is the full output of my install script:
Which version of ESPHome has the issue?
2024.2.2. I think the last version that worked was 2013.12.5
What type of installation are you using?
Home Assistant Add-on
Which version of Home Assistant has the issue?
2024.1.6
What platform are you using?
ESP32
Board
seeed xiao esp32c3
Component causing the issue
esphome
Example YAML snippet
No response
Anything in the logs that might be useful for us?
No response
Additional information
No response