- #include <sys/unistd.h>
- #include <sys/stat.h>
- #include "esp_vfs_fat.h"
- #include "sdmmc_cmd.h"
- const char *_file = "/sdcard/hello.abcd";
- FILE *f = fopen(_file, "wb");
- if (f == NULL) {
- ESP_LOGE("file test", "Failed to open file for writing");
- return;
- }
是历史遗留问题吗?有没有解决方法呢?