← index #7982Issue #12015
Related · medium · value 0.339
QUERY · ISSUE

esp32: No OTA images generated anymore since switch to cmake

openby mirkoopened 2021-11-10updated 2021-12-01
port-esp32

For versions using an ESP IDF SDK version using gmake I used to find binary files for (almost) each partition inside the build dir (ports/esp32/build-$$BOARD$$/):

  • bootloader.bin
  • partitions.bin
  • application.bin
  • firmware.bin

It seems, though, that at least the OTA image (formerly application.bin) is missing since switching to cmake.

Given that at least the upstream supported board SIL_WESP32 also uses OTA (CONFIG_PARTITION_TABLE_CUSTOM_FILENAME="partitions-16MiB-ota.csv in sdkconfig), I would have expected to also find an OTA binary image (or an equivalent) - however I can't find anything alike.

The only thing I can see is the file ports/esp32/build-$$BOARD$$/ota_data_initial.bin, which however is basically empty (well, 8KiB of 0xFF).

What's the supposedly correct way generating/obtaining OTA images with micropython v1.17 onwards?

CANDIDATE · ISSUE

esp32 build error ESP_IDF v5.2.0

closedby heikokueopened 2023-07-15updated 2024-07-13
enhancement

I got two build errors:

  1. /home/heiko/esp/esp-idf/components/app_update/include/esp_ota_ops.h:16:10: fatal error: esp_bootloader_desc.h: No such file or directory
  2. /home/heiko/esp/micropython/ports/esp32/uart.c:70:24: error: 'uart_periph_signal' undeclared (first use in this function)

To fix the first error esp_bootloader_format has to be added to esp32_common.cmake
To fix the second error #include "soc/uart_periph.h" has to be added to uart.c

I will create a pull request

Keyboard

j / / n
next pair
k / / p
previous pair
1 / / h
show query pane
2 / / l
show candidate pane
c
copy suggested comment
r
toggle reasoning
g i
go to index
?
show this help
esc
close overlays

press ? or esc to close

copied