Closed mihsu81 closed 2 years ago
could you try the following, without the platformIO_options :
esp32:
board: lolin_c3_mini
framework:
type: arduino
version: 2.0.3
platform_version: 4.4.0
This works for me, using the esphome dev branch. w
Thanks a lot @nielsnl68. It worked perfectly. 👍😊
When I tried
type: arduino
version: 2.0.3
platform_version: 4.4.0
I did end up with
error: cannot convert 'HWCDC*' to 'HardwareSerial*' in assignment
this->hw_serial_ = &Serial;
but my board is actually TTGO-T-01C3
Your indentation is wrong.
Mine is:
esp32:
board: lolin_c3_mini
framework:
type: arduino
version: 2.0.3
platform_version: 4.4.0
I think that was just copy paste
esphome:
name: elektromer
#platform: esp32
# platformio_options:
# board_build.variant: esp32c3
# board_build.flash_mode: dio
esp32:
board: lolin_c3_mini
framework:
type: arduino
version: 2.0.3
platform_version: 4.4.0
#esp32:
# board: esp32-c3-devkitm-1
#board: lolin_c3_mini
# framework:
# type: arduino
# #version: dev
# #platform_version: https://github.com/platformio/platform-espressif32.git#feature/arduino-upstream
# platform_version: 5.1.1 #4.4.0
# version: 2.0.4
# framework:
# type: esp-idf
# version: 5.1.1
# variant: esp32c3
# framework:
# type: esp-idf
wifi:
use_address: 192.168.50.63
ap:
api:
logger:
baud_rate: 0
ota:
#web_server:
#captive_portal:
external_components:
- source: github://evlo/esphome_ZPAZE312
components: [obis]
refresh: 0s
uart:
id: uart_bus
tx_pin: GPIO21
rx_pin: GPIO20
#baud_rate: 9600
baud_rate: 300
data_bits: 8
stop_bits: 1
parity: NONE
debug:
direction: BOTH
dummy_receiver: true
#data_bits: 7
#parity: ODD
rx_buffer_size: 1700
obis:
uart_id: uart_bus
force_update: # optional
interval: 10 #60
payload: "\x2F\x3F\x21\x0D\x0A"
sensor:
- platform: obis
channel: "21.8.0"
name: "L1"
unit_of_measurement: "kWh"
accuracy_decimals: 3
- platform: obis
channel: "41.8.0"
name: "L2"
unit_of_measurement: "kWh"
accuracy_decimals: 3
- platform: obis
channel: "61.8.0"
name: "L3"
unit_of_measurement: "kWh"
accuracy_decimals: 3
Anyway now i'm not able to get to the bootloader error and always end up with
Compiling /data/elektromer/.pioenvs/elektromer/src/esphome/components/wifi/wifi_component_esp8266.cpp.o
src/esphome/components/uart/uart_component_esp32_arduino.cpp: In member function 'virtual void esphome::uart::ESP32ArduinoUARTComponent::setup()':
src/esphome/components/uart/uart_component_esp32_arduino.cpp:90:25: error: cannot convert 'HWCDC*' to 'HardwareSerial*' in assignment
this->hw_serial_ = &Serial;
^~~~~~
*** [/data/elektromer/.pioenvs/elektromer/src/esphome/components/uart/uart_component_esp32_arduino.cpp.o] Error 1
even when i deleted whole .esphome folder
so I probably changed something etc.
So different issue
do you have uart section in your config?
esp32:
board: esp32-c3-devkitm-1
framework:
type: arduino
version: 2.0.3
platform_version: 4.4.0
did build for me
The problem
The wrong bootloader is being selected when compiling for a lolin c3 mini for the android framework - "bootloader__80m.bin" instead of "bootloader_dio_80m.bin".
Error log:
Which version of ESPHome has the issue?
2022.6.2
What type of installation are you using?
Home Assistant Add-on
Which version of Home Assistant has the issue?
2022.6.7
What platform are you using?
ESP32
Board
lolin c3 mini
Component causing the issue
No response
Example YAML snippet
Anything in the logs that might be useful for us?
Additional information
No response