Closed egoleos closed 5 months ago
I see that you fixed the errors in LD2450.cpp, but my ESPHome is loading the old code. Can you tell me why?
I see that you fixed the errors in LD2450.cpp, but my ESPHome is loading the old code. Can you tell me why?
ESPHome caches external components and updates them only occasionally. You can change this behavior with the refresh
parameter like this:
external_components:
- source: github://TillFleisch/ESPHome-HLK-LD2450@c6
refresh: 30min
Note that the branch is different c6
, which contains a fix for this issue.
I don't have access to a ESP32-C6, so I can't run/test the change.
I went ahead and tried to compile this using your configuration, which worked. Creating a valid binary for the ESP failed with the following error:
A fatal error occurred: Contents of segment at SHA256 digest offset 0xb0 are not all zero. Refusing to overwrite.
Altering the idf version resolved the issue.
esp32:
board: esp32-c6-devkitc-1
variant: esp32c6
flash_size: 8MB
framework:
type: esp-idf
#version: 5.1.2
version: 5.1.0
platform_version: 6.5.0
Can you verify this change (branch c6
) is working for you by using the above external component configuration?
Is this an unusual/currently unsupported Hardware configuration in ESPHome?
(Eventually I will get to improving the CI-Pipeline to include different HW variants, which should prevent issues like these in the future)
None of the configuration options, both with the old platform versions and the new ones, helped.
esp32:
board: esp32-c6-devkitc-1
variant: esp32c6
flash_size: 8MB
framework:
type: esp-idf
version: 5.1.0
platform_version: 6.5.0
esp32:
board: esp32-c6-devkitc-1
variant: esp32c6
flash_size: 8MB
framework:
type: esp-idf
version: 5.1.2
platform_version: 6.5.0
The result is the same:
A fatal error occurred: Contents of segment at SHA256 digest offset 0xb0 are not all zero. Refusing to overwrite.
The configuration:
esp32:
board: esp32-c6-devkitm-1
variant: esp32c6
flash_size: 8MB
framework:
type: esp-idf
version: 5.2.1
platform_version: 6.6.0
does not work for me at all.
There is currently no Arduino framework for the C6. The only configuration that worked without issues was the one I provided earlier.
The A fatal error occurred: Contents of segment at SHA256 digest offset 0xb0 are not all zero. Refusing to overwrite.
is also present in a minimal ESPHome configuration, this rules out that this is an issue with this external component.
Maybe the following steps can help:
.esphome
directory)I found that (in a new environment and) when using the following configuration, ESPHome did generate a valid binary: (Though I don't know this this is a valid configuration for the hardware you're using.)
esp32:
board: esp32-c6-devkitc-1
variant: esp32c6
flash_size: 8MB
framework:
type: esp-idf
version: 5.1.2 # or 5.1.0, both worked
platform_version: 6.5.0
sdkconfig_options:
CONFIG_ESPTOOLPY_FLASHSIZE_8MB: y
Thank you for the suggestion. With parameter
CONFIG_ESPTOOLPY_FLASHSIZE_8MB: y
everything compiled and works as expected. Yesterday, I tried different options, but without the one you suggested. Thanks again for your help
There is an error in zone.cpp:41:70
The last changes, framework: type: esp-idf
should be
ESP_LOGCONFIG(TAG, " template polygon update interval: %lu", template_evaluation_interval_);
The log