Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

spi_flash_mmap_handle_t problem when building #3

Open
donutbrew opened this issue May 5, 2024 · 0 comments
Open

spi_flash_mmap_handle_t problem when building #3

donutbrew opened this issue May 5, 2024 · 0 comments

Comments

@donutbrew
Copy link

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant