You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I get the following error when trying to flash the ESP32 using ESP-IDF 5.2 and command idf.py flash -p COM6:
C:/Users/oldgreg/picframe_colepd/firmware/main/main.c: In function 'app_main':
C:/Users/oldgreg/picframe_colepd/firmware/main/main.c:88:9: error: unknown type name 'spi_flash_mmap_handle_t'
88 | spi_flash_mmap_handle_t mmap_handle;
| ^~~~~~~~~~~~~~~~~~~~~~~
C:/Users/oldgreg/picframe_colepd/firmware/main/main.c:90:68: error: 'SPI_FLASH_MMAP_DATA' undeclared (first use in this function)
90 | esp_partition_mmap(part, 0, IMG_SIZE_BYTES*IMG_SLOT_COUNT, SPI_FLASH_MMAP_DATA, (const void**)&images, &mmap_handle);
| ^~~~~~~~~~~~~~~~~~~
C:/Users/oldgreg/picframe_colepd/firmware/main/main.c:90:68: note: each undeclared identifier is reported only once for each function it appears in
C:/Users/oldgreg/picframe_colepd/firmware/main/main.c:90:112: warning: passing argument 6 of 'esp_partition_mmap' from incompatible pointer type [-Wincompatible-pointer-types]
90 | esp_partition_mmap(part, 0, IMG_SIZE_BYTES*IMG_SLOT_COUNT, SPI_FLASH_MMAP_DATA, (const void**)&images, &mmap_handle);
| ^~~~~~~~~~~~
|
| int *
In file included from C:/Users/oldgreg/picframe_colepd/firmware/main/main.c:23:
C:/Espressif5/frameworks/esp-idf-v5.2/components/esp_partition/include/esp_partition.h:380:81: note: expected 'esp_partition_mmap_handle_t *' {aka 'long unsigned int *'} but argument is of type 'int *'
380 | const void** out_ptr, esp_partition_mmap_handle_t* out_handle);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~
ninja: build stopped: subcommand failed.
ninja failed with exit code 1, output of the command is in the C:\Users\oldgreg\picframe_colepd\firmware\build\log\idf_py_stderr_output_23720 and C:\Users\oldgreg\picframe_colepd\firmware\build\log\idf_py_stdout_output_23720
Again, any help you can give is much appreciated!
The text was updated successfully, but these errors were encountered:
I get the following error when trying to flash the ESP32 using ESP-IDF 5.2 and command
idf.py flash -p COM6
:Again, any help you can give is much appreciated!
The text was updated successfully, but these errors were encountered: