esp32: No OTA images generated anymore since switch to cmake
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?
esp32 build error ESP_IDF v5.2.0
I got two build errors:
/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/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