Open spali opened 1 year ago
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Not stale
Not stale
I had the same issue, but it's already fixec in dev: https://github.com/esphome/esphome/commit/9922eb83e2851f23992d021ae59adba5d56d73d7 Double checking if this works now ...
Hi,
i have checked newest version of ESPHome and the Problem still exists.
same here, changing pins helped:
uart:
- id: modbus_uart
tx_pin: TX
rx_pin: RX
->
uart:
- id: modbus_uart
tx_pin: 26
rx_pin: 27
The problem
If watch the logs over serial during boot:
I get the error bellow.
Which version of ESPHome has the issue?
2022.9.3
What type of installation are you using?
pip
Which version of Home Assistant has the issue?
No response
What platform are you using?
ESP32
Board
m5stack-core-esp32
Component causing the issue
uart
Example YAML snippet
Anything in the logs that might be useful for us?
Additional information
This didn't happen before I updated framework and platform (used to use default before):
I assume this line is the caller for the error: https://github.com/esphome/esphome/blob/80d03a631e3bccc055d76cc642a6f8993f141df4/esphome/components/uart/uart_component_esp32_arduino.cpp#L103 esphome/esphome/blob/80d03a631e3bccc055d76cc642a6f8993f141df4/esphome/components/uart/uart_component_esp32_arduino.cpp#L103 And Here the code that throws the error: https://github.com/espressif/arduino-esp32/blob/a5f03a86512b270be1080d7e7cb82e4fd71c9a1a/cores/esp32/HardwareSerial.cpp#L525
I'm not an expert, but looks like a switch of the
begin
andsetRxBufferSize
call could solve this?