IDF V5.0 编译 ESP-BOX 的 factory_demo失败

ssssss
Posts: 31
Joined: Thu Jun 16, 2022 3:10 pm

IDF V5.0 编译 ESP-BOX 的 factory_demo失败

Postby ssssss » Wed Mar 29, 2023 2:00 am

报错如下:

Code: Select all

Running ninja in directory e:\espressif\frameworks\esp-idf-v5.0\esp-box\examples\factory_demo\build
Executing "ninja all"...
[1/1] cmd.exe /C "cd /D E:\Espressif\frameworks\esp-idf-v5.0\esp-box...-v5.0/esp-box/examples/factory_demo/build/bootloader/bootloader.bin"Bootloader binary size 0x55d0 bytes. 0x2a30 bytes (33%) free.
[8/121] Building C object esp-idf/espressif__esp-sr/CMakeFiles/__idf_espressif__esp-sr.dir/src/model_path.c.objFAILED: esp-idf/espressif__esp-sr/CMakeFiles/__idf_espressif__esp-sr.dir/src/model_path.c.obj
ccache E:\Espressif\tools\xtensa-esp32s3-elf\esp-2022r1-11.2.0\xtensa-esp32s3-elf\bin\xtensa-esp32s3-elf-gcc.exe  -IE:/Espressif/frameworks/esp-idf-v5.0/esp-box/examples/factory_demo/build/config -IE:/Espressif/frameworks/esp-idf-v5.0/esp-box/examples/factory_demo/managed_components/espressif__esp-sr/src/include -IE:/Espressif/frameworks/esp-idf-v5.0/esp-box/examples/factory_demo/managed_components/espressif__esp-sr/esp-tts/esp_tts_chinese/include -IE:/Espressif/frameworks/esp-idf-v5.0/esp-box/examples/factory_demo/managed_components/espressif__esp-sr/include/esp32s3 -IE:/Espressif/frameworks/esp-idf-v5.0/components/newlib/platform_include -IE:/Espressif/frameworks/esp-idf-v5.0/components/freertos/FreeRTOS-Kernel/include -IE:/Espressif/frameworks/esp-idf-v5.0/components/freertos/esp_additions/include/freertos -IE:/Espressif/frameworks/esp-idf-v5.0/components/freertos/FreeRTOS-Kernel/portable/xtensa/include -IE:/Espressif/frameworks/esp-idf-v5.0/components/freertos/esp_additions/include -IE:/Espressif/frameworks/esp-idf-v5.0/components/esp_hw_support/include -IE:/Espressif/frameworks/esp-idf-v5.0/components/esp_hw_support/include/soc -IE:/Espressif/frameworks/esp-idf-v5.0/components/esp_hw_support/include/soc/esp32s3 -IE:/Espressif/frameworks/esp-idf-v5.0/components/esp_hw_support/port/esp32s3/. -IE:/Espressif/frameworks/esp-idf-v5.0/components/esp_hw_support/port/esp32s3/private_include -IE:/Espressif/frameworks/esp-idf-v5.0/components/heap/include -IE:/Espressif/frameworks/esp-idf-v5.0/components/log/include -IE:/Espressif/frameworks/esp-idf-v5.0/components/soc/include -IE:/Espressif/frameworks/esp-idf-v5.0/components/soc/esp32s3/. -IE:/Espressif/frameworks/esp-idf-v5.0/components/soc/esp32s3/include -IE:/Espressif/frameworks/esp-idf-v5.0/components/hal/esp32s3/include -IE:/Espressif/frameworks/esp-idf-v5.0/components/hal/include -IE:/Espressif/frameworks/esp-idf-v5.0/components/hal/platform_port/include -IE:/Espressif/frameworks/esp-idf-v5.0/components/esp_rom/include -IE:/Espressif/frameworks/esp-idf-v5.0/components/esp_rom/include/esp32s3 -IE:/Espressif/frameworks/esp-idf-v5.0/components/esp_rom/esp32s3 -IE:/Espressif/frameworks/esp-idf-v5.0/components/esp_common/include -IE:/Espressif/frameworks/esp-idf-v5.0/components/esp_system/include -IE:/Espressif/frameworks/esp-idf-v5.0/components/esp_system/port/soc -IE:/Espressif/frameworks/esp-idf-v5.0/components/esp_system/port/include/private -IE:/Espressif/frameworks/esp-idf-v5.0/components/xtensa/include -IE:/Espressif/frameworks/esp-idf-v5.0/components/xtensa/esp32s3/include -IE:/Espressif/frameworks/esp-idf-v5.0/components/esp_timer/include -IE:/Espressif/frameworks/esp-idf-v5.0/components/lwip/include -IE:/Espressif/frameworks/esp-idf-v5.0/components/lwip/include/apps -IE:/Espressif/frameworks/esp-idf-v5.0/components/lwip/include/apps/sntp -IE:/Espressif/frameworks/esp-idf-v5.0/components/lwip/lwip/src/include -IE:/Espressif/frameworks/esp-idf-v5.0/components/lwip/port/esp32/include -IE:/Espressif/frameworks/esp-idf-v5.0/components/lwip/port/esp32/include/arch -IE:/Espressif/frameworks/esp-idf-v5.0/components/json/cJSON -IE:/Espressif/frameworks/esp-idf-v5.0/components/spiffs/include -IE:/Espressif/frameworks/esp-idf-v5.0/components/esp_partition/include -IE:/Espressif/frameworks/esp-idf-v5.0/esp-box/examples/factory_demo/managed_components/espressif__esp-dsp/modules/dotprod/include -IE:/Espressif/frameworks/esp-idf-v5.0/esp-box/examples/factory_demo/managed_components/espressif__esp-dsp/modules/support/include -IE:/Espressif/frameworks/esp-idf-v5.0/esp-box/examples/factory_demo/managed_components/espressif__esp-dsp/modules/windows/include -IE:/Espressif/frameworks/esp-idf-v5.0/esp-box/examples/factory_demo/managed_components/espressif__esp-dsp/modules/windows/hann/include -IE:/Espressif/frameworks/esp-idf-v5.0/esp-box/examples/factory_demo/managed_components/espressif__esp-dsp/modules/windows/blackman/include -IE:/Espressif/frameworks/esp-idf-v5.0/esp-box/examples/factory_demo/managed_components/espressif__esp-dsp/modules/windows/blackman_harris/include -IE:/Espressif/frameworks/esp-idf-v5.0/esp-box/examples/factory_demo/managed_components/espressif__esp-dsp/modules/windows/blackman_nuttall/include -IE:/Espressif/frameworks/esp-idf-v5.0/esp-box/examples/factory_demo/managed_components/espressif__esp-dsp/modules/windows/nuttall/include -IE:/Espressif/frameworks/esp-idf-v5.0/esp-box/examples/factory_demo/managed_components/espressif__esp-dsp/modules/windows/flat_top/include -IE:/Espressif/frameworks/esp-idf-v5.0/esp-box/examples/factory_demo/managed_components/espressif__esp-dsp/modules/iir/include -IE:/Espressif/frameworks/esp-idf-v5.0/esp-box/examples/factory_demo/managed_components/espressif__esp-dsp/modules/fir/include -IE:/Espressif/frameworks/esp-idf-v5.0/esp-box/examples/factory_demo/managed_components/espressif__esp-dsp/modules/math/include -IE:/Espressif/frameworks/esp-idf-v5.0/esp-box/examples/factory_demo/managed_components/espressif__esp-dsp/modules/math/add/include -IE:/Espressif/frameworks/esp-idf-v5.0/esp-box/examples/factory_demo/managed_components/espressif__esp-dsp/modules/math/sub/include -IE:/Espressif/frameworks/esp-idf-v5.0/esp-box/examples/factory_demo/managed_components/espressif__esp-dsp/modules/math/mul/include -IE:/Espressif/frameworks/esp-idf-v5.0/esp-box/examples/factory_demo/managed_components/espressif__esp-dsp/modules/math/addc/include -IE:/Espressif/frameworks/esp-idf-v5.0/esp-box/examples/factory_demo/managed_components/espressif__esp-dsp/modules/math/mulc/include -IE:/Espressif/frameworks/esp-idf-v5.0/esp-box/examples/factory_demo/managed_components/espressif__esp-dsp/modules/math/sqrt/include -IE:/Espressif/frameworks/esp-idf-v5.0/esp-box/examples/factory_demo/managed_components/espressif__esp-dsp/modules/matrix/include -IE:/Espressif/frameworks/esp-idf-v5.0/esp-box/examples/factory_demo/managed_components/espressif__esp-dsp/modules/fft/include -IE:/Espressif/frameworks/esp-idf-v5.0/esp-box/examples/factory_demo/managed_components/espressif__esp-dsp/modules/dct/include -IE:/Espressif/frameworks/esp-idf-v5.0/esp-box/examples/factory_demo/managed_components/espressif__esp-dsp/modules/conv/include -IE:/Espressif/frameworks/esp-idf-v5.0/esp-box/examples/factory_demo/managed_components/espressif__esp-dsp/modules/common/include -IE:/Espressif/frameworks/esp-idf-v5.0/esp-box/examples/factory_demo/managed_components/espressif__esp-dsp/modules/kalman/ekf/include -IE:/Espressif/frameworks/esp-idf-v5.0/esp-box/examples/factory_demo/managed_components/espressif__esp-dsp/modules/kalman/ekf_imu13states/include -mlongcalls  -fdiagnostics-color=always -fdiagnostics-color=always -ffunction-sections -fdata-sections -Wall -Werror=all -Wno-error=unused-function -Wno-error=unused-variable -Wno-error=deprecated-declarations -Wextra -Wno-unused-parameter -Wno-sign-compare -Wno-enum-conversion -gdwarf-4 -ggdb -Og -fmacro-prefix-map=E:/Espressif/frameworks/esp-idf-v5.0/esp-box/examples/factory_demo=. -fmacro-prefix-map=E:/Espressif/frameworks/esp-idf-v5.0=/IDF -fstrict-volatile-bitfields -Wno-error=unused-but-set-variable -fno-jump-tables -fno-tree-switch-conversion -DconfigENABLE_FREERTOS_DEBUG_OCDAWARE=1 -std=gnu17 -Wno-old-style-declaration -D_GNU_SOURCE -DIDF_VER=\"v5.0-dirty\" -DESP_PLATFORM -D_POSIX_READER_WRITER_LOCKS -MD -MT esp-idf/espressif__esp-sr/CMakeFiles/__idf_espressif__esp-sr.dir/src/model_path.c.obj -MF esp-idf\espressif__esp-sr\CMakeFiles\__idf_espressif__esp-sr.dir\src\model_path.c.obj.d -o esp-idf/espressif__esp-sr/CMakeFiles/__idf_espressif__esp-sr.dir/src/model_path.c.obj -c E:/Espressif/frameworks/esp-idf-v5.0/esp-box/examples/factory_demo/managed_components/espressif__esp-sr/src/model_path.c
In file included from E:/Espressif/frameworks/esp-idf-v5.0/esp-box/examples/factory_demo/managed_components/espressif__esp-sr/src/model_path.c:5:
E:/Espressif/frameworks/esp-idf-v5.0/esp-box/examples/factory_demo/managed_components/espressif__esp-sr/src/include/model_path.h:21:5: error: unknown type name 'spi_flash_mmap_handle_t'
   21 |     spi_flash_mmap_handle_t mmap_handle; // mmap_handle if using esp_partition_mmap else NULL;
      |     ^~~~~~~~~~~~~~~~~~~~~~~
E:/Espressif/frameworks/esp-idf-v5.0/esp-box/examples/factory_demo/managed_components/espressif__esp-sr/src/model_path.c: In function 'srmodel_mmap_init':
E:/Espressif/frameworks/esp-idf-v5.0/esp-box/examples/factory_demo/managed_components/espressif__esp-sr/src/model_path.c:248:59: error: 'SPI_FLASH_MMAP_DATA' undeclared (first use in this function)
  248 |     esp_err_t err=esp_partition_mmap(part, 0, part->size, SPI_FLASH_MMAP_DATA, &root, &models->mmap_handle);
      |                                                           ^~~~~~~~~~~~~~~~~~~
E:/Espressif/frameworks/esp-idf-v5.0/esp-box/examples/factory_demo/managed_components/espressif__esp-sr/src/model_path.c:248:59: note: each undeclared identifier is reported only once for each function it appears in
E:/Espressif/frameworks/esp-idf-v5.0/esp-box/examples/factory_demo/managed_components/espressif__esp-sr/src/model_path.c:248:87: warning: passing argument 6 of 'esp_partition_mmap' from incompatible pointer type [-Wincompatible-pointer-types]
  248 |     esp_err_t err=esp_partition_mmap(part, 0, part->size, SPI_FLASH_MMAP_DATA, &root, &models->mmap_handle);
      |                                                                                       ^~~~~~~~~~~~~~~~~~~~
      |                                                                                       |
      |                                                                                       int *
In file included from E:/Espressif/frameworks/esp-idf-v5.0/esp-box/examples/factory_demo/managed_components/espressif__esp-sr/src/include/model_path.h:5,
                 from E:/Espressif/frameworks/esp-idf-v5.0/esp-box/examples/factory_demo/managed_components/espressif__esp-sr/src/model_path.c:5:
E:/Espressif/frameworks/esp-idf-v5.0/components/esp_partition/include/esp_partition.h:375:81: note: expected 'esp_partition_mmap_handle_t *' {aka 'long unsigned int *'} but argument is of type 'int *'
  375 |                              const void** out_ptr, esp_partition_mmap_handle_t* out_handle);
      |                                                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~
In file included from E:/Espressif/frameworks/esp-idf-v5.0/esp-box/examples/factory_demo/managed_components/espressif__esp-sr/src/model_path.c:12:
E:/Espressif/frameworks/esp-idf-v5.0/components/log/include/esp_log.h:265:27: error: format '%d' expects argument of type 'int', but argument 7 has type 'uint32_t' {aka 'long unsigned int'} [-Werror=format=]
  265 | #define LOG_COLOR(COLOR)  "\033[0;" COLOR "m"
      |                           ^~~~~~~~~
E:/Espressif/frameworks/esp-idf-v5.0/components/log/include/esp_log.h:268:27: note: in expansion of macro 'LOG_COLOR'
  268 | #define LOG_COLOR_E       LOG_COLOR(LOG_COLOR_RED)
      |                           ^~~~~~~~~
E:/Espressif/frameworks/esp-idf-v5.0/components/log/include/esp_log.h:282:37: note: in expansion of macro 'LOG_COLOR_E'
  282 | #define LOG_FORMAT(letter, format)  LOG_COLOR_ ## letter #letter " (%" PRIu32 ") %s: " format LOG_RESET_COLOR "\n"
      |                                     ^~~~~~~~~~
E:/Espressif/frameworks/esp-idf-v5.0/components/log/include/esp_log.h:410:86: note: in expansion of macro 'LOG_FORMAT'
  410 |         if (level==ESP_LOG_ERROR )          { esp_log_write(ESP_LOG_ERROR,      tag, LOG_FORMAT(E, format), esp_log_timestamp(), tag, ##__VA_ARGS__); } \
      |                                                                                      ^~~~~~~~~~
E:/Espressif/frameworks/esp-idf-v5.0/components/log/include/esp_log.h:432:41: note: in expansion of macro 'ESP_LOG_LEVEL'
  432 |         if ( LOG_LOCAL_LEVEL >= level ) ESP_LOG_LEVEL(level, tag, format, ##__VA_ARGS__); \
      |                                         ^~~~~~~~~~~~~
E:/Espressif/frameworks/esp-idf-v5.0/components/log/include/esp_log.h:342:38: note: in expansion of macro 'ESP_LOG_LEVEL_LOCAL'
  342 | #define ESP_LOGI( tag, format, ... ) ESP_LOG_LEVEL_LOCAL(ESP_LOG_INFO,    tag, format, ##__VA_ARGS__)
      |                                      ^~~~~~~~~~~~~~~~~~~
E:/Espressif/frameworks/esp-idf-v5.0/esp-box/examples/factory_demo/managed_components/espressif__esp-sr/src/model_path.c:253:9: note: in expansion of macro 'ESP_LOGI'
  253 |         ESP_LOGI(TAG, "partition %s size: %d by mmap", part->label, part->size);
      |         ^~~~~~~~
E:/Espressif/frameworks/esp-idf-v5.0/components/log/include/esp_log.h:265:27: error: format '%d' expects argument of type 'int', but argument 7 has type 'uint32_t' {aka 'long unsigned int'} [-Werror=format=]
  265 | #define LOG_COLOR(COLOR)  "\033[0;" COLOR "m"
      |                           ^~~~~~~~~
E:/Espressif/frameworks/esp-idf-v5.0/components/log/include/esp_log.h:269:27: note: in expansion of macro 'LOG_COLOR'
  269 | #define LOG_COLOR_W       LOG_COLOR(LOG_COLOR_BROWN)
      |                           ^~~~~~~~~
E:/Espressif/frameworks/esp-idf-v5.0/components/log/include/esp_log.h:282:37: note: in expansion of macro 'LOG_COLOR_W'
  282 | #define LOG_FORMAT(letter, format)  LOG_COLOR_ ## letter #letter " (%" PRIu32 ") %s: " format LOG_RESET_COLOR "\n"
      |                                     ^~~~~~~~~~
E:/Espressif/frameworks/esp-idf-v5.0/components/log/include/esp_log.h:411:86: note: in expansion of macro 'LOG_FORMAT'
  411 |         else if (level==ESP_LOG_WARN )      { esp_log_write(ESP_LOG_WARN,       tag, LOG_FORMAT(W, format), esp_log_timestamp(), tag, ##__VA_ARGS__); } \
      |                                                                                      ^~~~~~~~~~
E:/Espressif/frameworks/esp-idf-v5.0/components/log/include/esp_log.h:432:41: note: in expansion of macro 'ESP_LOG_LEVEL'
  432 |         if ( LOG_LOCAL_LEVEL >= level ) ESP_LOG_LEVEL(level, tag, format, ##__VA_ARGS__); \
      |                                         ^~~~~~~~~~~~~
E:/Espressif/frameworks/esp-idf-v5.0/components/log/include/esp_log.h:342:38: note: in expansion of macro 'ESP_LOG_LEVEL_LOCAL'
  342 | #define ESP_LOGI( tag, format, ... ) ESP_LOG_LEVEL_LOCAL(ESP_LOG_INFO,    tag, format, ##__VA_ARGS__)
      |                                      ^~~~~~~~~~~~~~~~~~~
E:/Espressif/frameworks/esp-idf-v5.0/esp-box/examples/factory_demo/managed_components/espressif__esp-sr/src/model_path.c:253:9: note: in expansion of macro 'ESP_LOGI'
  253 |         ESP_LOGI(TAG, "partition %s size: %d by mmap", part->label, part->size);
      |         ^~~~~~~~
E:/Espressif/frameworks/esp-idf-v5.0/esp-box/examples/factory_demo/managed_components/espressif__esp-sr/src/model_path.c:253:1: error: format '%d' expects argument of type 'int', but argument 7 has type 'uint32_t' {aka 'long unsigned int'} [-Werror=format=]
  253 |         ESP_LOGI(TAG, "partition %s size: %d by mmap", part->label, part->size);
      | ^       ~~~
E:/Espressif/frameworks/esp-idf-v5.0/components/log/include/esp_log.h:282:59: note: in definition of macro 'LOG_FORMAT'
  282 | #define LOG_FORMAT(letter, format)  LOG_COLOR_ ## letter #letter " (%" PRIu32 ") %s: " format LOG_RESET_COLOR "\n"
      |                                                           ^~~~~~
E:/Espressif/frameworks/esp-idf-v5.0/components/log/include/esp_log.h:432:41: note: in expansion of macro 'ESP_LOG_LEVEL'
  432 |         if ( LOG_LOCAL_LEVEL >= level ) ESP_LOG_LEVEL(level, tag, format, ##__VA_ARGS__); \
      |                                         ^~~~~~~~~~~~~
E:/Espressif/frameworks/esp-idf-v5.0/components/log/include/esp_log.h:342:38: note: in expansion of macro 'ESP_LOG_LEVEL_LOCAL'
  342 | #define ESP_LOGI( tag, format, ... ) ESP_LOG_LEVEL_LOCAL(ESP_LOG_INFO,    tag, format, ##__VA_ARGS__)
      |                                      ^~~~~~~~~~~~~~~~~~~
E:/Espressif/frameworks/esp-idf-v5.0/esp-box/examples/factory_demo/managed_components/espressif__esp-sr/src/model_path.c:253:9: note: in expansion of macro 'ESP_LOGI'
  253 |         ESP_LOGI(TAG, "partition %s size: %d by mmap", part->label, part->size);
      |         ^~~~~~~~
E:/Espressif/frameworks/esp-idf-v5.0/esp-box/examples/factory_demo/managed_components/espressif__esp-sr/src/model_path.c:253:1: error: format '%d' expects argument of type 'int', but argument 7 has type 'uint32_t' {aka 'long unsigned int'} [-Werror=format=]
  253 |         ESP_LOGI(TAG, "partition %s size: %d by mmap", part->label, part->size);
      | ^       ~~~
E:/Espressif/frameworks/esp-idf-v5.0/components/log/include/esp_log.h:282:59: note: in definition of macro 'LOG_FORMAT'
  282 | #define LOG_FORMAT(letter, format)  LOG_COLOR_ ## letter #letter " (%" PRIu32 ") %s: " format LOG_RESET_COLOR "\n"
      |                                                           ^~~~~~
E:/Espressif/frameworks/esp-idf-v5.0/components/log/include/esp_log.h:432:41: note: in expansion of macro 'ESP_LOG_LEVEL'
  432 |         if ( LOG_LOCAL_LEVEL >= level ) ESP_LOG_LEVEL(level, tag, format, ##__VA_ARGS__); \
      |                                         ^~~~~~~~~~~~~
E:/Espressif/frameworks/esp-idf-v5.0/components/log/include/esp_log.h:342:38: note: in expansion of macro 'ESP_LOG_LEVEL_LOCAL'
  342 | #define ESP_LOGI( tag, format, ... ) ESP_LOG_LEVEL_LOCAL(ESP_LOG_INFO,    tag, format, ##__VA_ARGS__)
      |                                      ^~~~~~~~~~~~~~~~~~~
E:/Espressif/frameworks/esp-idf-v5.0/esp-box/examples/factory_demo/managed_components/espressif__esp-sr/src/model_path.c:253:9: note: in expansion of macro 'ESP_LOGI'
  253 |         ESP_LOGI(TAG, "partition %s size: %d by mmap", part->label, part->size);
      |         ^~~~~~~~
E:/Espressif/frameworks/esp-idf-v5.0/components/log/include/esp_log.h:265:27: error: format '%d' expects argument of type 'int', but argument 7 has type 'uint32_t' {aka 'long unsigned int'} [-Werror=format=]
  265 | #define LOG_COLOR(COLOR)  "\033[0;" COLOR "m"
      |                           ^~~~~~~~~
E:/Espressif/frameworks/esp-idf-v5.0/components/log/include/esp_log.h:270:27: note: in expansion of macro 'LOG_COLOR'
  270 | #define LOG_COLOR_I       LOG_COLOR(LOG_COLOR_GREEN)
      |                           ^~~~~~~~~
E:/Espressif/frameworks/esp-idf-v5.0/components/log/include/esp_log.h:282:37: note: in expansion of macro 'LOG_COLOR_I'
  282 | #define LOG_FORMAT(letter, format)  LOG_COLOR_ ## letter #letter " (%" PRIu32 ") %s: " format LOG_RESET_COLOR "\n"
      |                                     ^~~~~~~~~~
E:/Espressif/frameworks/esp-idf-v5.0/components/log/include/esp_log.h:414:86: note: in expansion of macro 'LOG_FORMAT'
  414 |         else                                { esp_log_write(ESP_LOG_INFO,       tag, LOG_FORMAT(I, format), esp_log_timestamp(), tag, ##__VA_ARGS__); } \
      |                                                                                      ^~~~~~~~~~
E:/Espressif/frameworks/esp-idf-v5.0/components/log/include/esp_log.h:432:41: note: in expansion of macro 'ESP_LOG_LEVEL'
  432 |         if ( LOG_LOCAL_LEVEL >= level ) ESP_LOG_LEVEL(level, tag, format, ##__VA_ARGS__); \
      |                                         ^~~~~~~~~~~~~
E:/Espressif/frameworks/esp-idf-v5.0/components/log/include/esp_log.h:342:38: note: in expansion of macro 'ESP_LOG_LEVEL_LOCAL'
  342 | #define ESP_LOGI( tag, format, ... ) ESP_LOG_LEVEL_LOCAL(ESP_LOG_INFO,    tag, format, ##__VA_ARGS__)
      |                                      ^~~~~~~~~~~~~~~~~~~
E:/Espressif/frameworks/esp-idf-v5.0/esp-box/examples/factory_demo/managed_components/espressif__esp-sr/src/model_path.c:253:9: note: in expansion of macro 'ESP_LOGI'
  253 |         ESP_LOGI(TAG, "partition %s size: %d by mmap", part->label, part->size);
      |         ^~~~~~~~
E:/Espressif/frameworks/esp-idf-v5.0/esp-box/examples/factory_demo/managed_components/espressif__esp-sr/src/model_path.c: In function 'srmodel_mmap_deinit':
E:/Espressif/frameworks/esp-idf-v5.0/esp-box/examples/factory_demo/managed_components/espressif__esp-sr/src/model_path.c:307:9: error: implicit declaration of function 'spi_flash_munmap' [-Werror=implicit-function-declaration]
  307 |         spi_flash_munmap(models->mmap_handle);
      |         ^~~~~~~~~~~~~~~~
cc1.exe: some warnings being treated as errors
[10/121] Building C object esp-idf/bsp/CMakeFiles/__idf_bsp.dir/src/boards/esp32_s3_box.c.objE:/Espressif/frameworks/esp-idf-v5.0/esp-box/components/bsp/src/boards/esp32_s3_box.c:88:61: warning: initialization of 'uint8_t (*)(void *)' {aka 'unsigned char (*)(void *)'} from incompatible pointer type '_Bool (*)(void *)' [-Wincompatible-pointer-types]
   88 |         .custom_button_config.button_custom_get_key_value = bsp_home_button_get,
      |                                                             ^~~~~~~~~~~~~~~~~~~
E:/Espressif/frameworks/esp-idf-v5.0/esp-box/components/bsp/src/boards/esp32_s3_box.c:88:61: note: (near initialization for 'BOARD_BTN_ID_config[2].<anonymous>.custom_button_config.button_custom_get_key_value')
[13/121] Building C object esp-idf/espressif__esp_rainmaker/CMakeFiles/__idf_espressif__esp_rainmaker.dir/src/core/esp_rmaker_core.c.objninja: build stopped: subcommand failed.
HINT: Please check that the function name is correct. Also it is possible that you've forgot to import spi_flash_munmap library(s) in header file or add the necessary REQURIES component. Try to add missing libraries to your project header file or check idf_component_register(REQUIRES ...) section in your component CmakeList.txt file. For more information run 'idf.py docs -sp api-guides/build-system.html'.
Also, please check if the function has been removed, renamed or replaced by an alternative function - refer to the migration guide for more information.
HINT: The issue is better to resolve by replacing format specifiers to 'PRI'-family macros (include <inttypes.h> header file).
ninja failed with exit code 1, output of the command is in the e:\espressif\frameworks\esp-idf-v5.0\esp-box\examples\factory_demo\build\log\idf_py_stderr_output_15672 and e:\espressif\frameworks\esp-idf-v5.0\esp-box\examples\factory_demo\build\log\idf_py_stdout_output_15672
PS E:\Espressif\frameworks\esp-idf-v5.0\esp-box\examples\factory_demo>

ESP_Xuxin
Posts: 83
Joined: Thu Sep 22, 2022 3:35 am

Re: IDF V5.0 编译 ESP-BOX 的 factory_demo失败

Postby ESP_Xuxin » Wed Mar 29, 2023 4:08 am

https://github.com/espressif/esp-box/issues/60
先参考上述issue,将idf_component.yml 换老的版本,最新的我们在修复中

ssssss
Posts: 31
Joined: Thu Jun 16, 2022 3:10 pm

Re: IDF V5.0 编译 ESP-BOX 的 factory_demo失败

Postby ssssss » Wed Mar 29, 2023 4:49 am

idf_component.yml 的老版本能发一下不?我这儿也没有啊

ssssss
Posts: 31
Joined: Thu Jun 16, 2022 3:10 pm

Re: IDF V5.0 编译 ESP-BOX 的 factory_demo失败

Postby ssssss » Wed Mar 29, 2023 4:59 am

我感觉我碰到的问题和你发的issue不太一样,我这儿的问题显示为partition相关的,当然也会报esp-sr的问题,但是我手动删一下managed_components里的esp_sr倒也继续往下编译了

ESP_Xuxin
Posts: 83
Joined: Thu Sep 22, 2022 3:35 am

Re: IDF V5.0 编译 ESP-BOX 的 factory_demo失败

Postby ESP_Xuxin » Wed Mar 29, 2023 11:57 am

现在还有啥错误,是否已经编译 ok?

ssssss
Posts: 31
Joined: Thu Jun 16, 2022 3:10 pm

Re: IDF V5.0 编译 ESP-BOX 的 factory_demo失败

Postby ssssss » Wed Mar 29, 2023 12:21 pm

还是不能编译啊,你们估计新版本什么时候释放出来?大概要多久

ESP_Xuxin
Posts: 83
Joined: Thu Sep 22, 2022 3:35 am

Re: IDF V5.0 编译 ESP-BOX 的 factory_demo失败

Postby ESP_Xuxin » Thu Mar 30, 2023 2:08 am

你这边是 SR 编译报错么?我一会释放一个固定版本的 SR 版本;

ssssss
Posts: 31
Joined: Thu Jun 16, 2022 3:10 pm

Re: IDF V5.0 编译 ESP-BOX 的 factory_demo失败

Postby ssssss » Thu Mar 30, 2023 5:28 am

除了SR报错,还有partition的部分报错

ssssss
Posts: 31
Joined: Thu Jun 16, 2022 3:10 pm

Re: IDF V5.0 编译 ESP-BOX 的 factory_demo失败

Postby ssssss » Fri Mar 31, 2023 3:00 am

编译问题已经解决,当前固件实测没问题。

但是,发现我的ESP-BOX开发板依然需要手动拉低IO0来进入下载模式,很奇怪,新的固件为什么烧录成功以后,再次烧录仍然需要手动拉低IO0?

Who is online

Users browsing this forum: No registered users and 5 guests