Code: Select all
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "esp_vfs.h"
#include "esp_vfs_fat.h"
#include "esp_system.h"
const char *base_path = "/spiflash";
static wl_handle_t s_wl_handle = WL_INVALID_HANDLE;
Code: Select all
idf_component_register(SRCS "pm_fatfs.c"
INCLUDE_DIRS "."
REQUIRES spi_flash fatfs esp_system wear_levelling)
In my main directory, I also add REQUIRES fatfs in /main/CMakeLists.txt
Code: Select all
idf_component_register(SRCS "main.c"
INCLUDE_DIRS "."
REQUIRES driver Ymodem fatfs)
The file in the path:
How can I solve the fatal error?E:\esp\esp-idf\components\spi_flash\sim\stubs\vfs\include