Search found 3 matches

by Lub-esp
Thu Jul 13, 2023 4:50 pm
Forum: ESP-IDF 中文讨论版
Topic: fopen()不能打开文件后缀名大于3字节的文件
Replies: 2
Views: 1611

fopen()不能打开文件后缀名大于3字节的文件


#include <sys/unistd.h>
#include <sys/stat.h>
#include "esp_vfs_fat.h"
#include "sdmmc_cmd.h"

使用sdspi例程,初始化并mount sdcard文件系统后,使用fopen()不能打开文件后缀名大于3字节的文件

const char *_file = "/sdcard/hello.abcd";
FILE *f = fopen(_file, "wb");
if (f == NULL) {
ESP_LOGE("file test", "Failed to open file for ...
by Lub-esp
Wed May 10, 2023 6:06 am
Forum: ESP-IDF 中文讨论版
Topic: 关于ESP32-C6的双TWAI
Replies: 2
Views: 2421

关于ESP32-C6的双TWAI

项目需要用到两个CAN总线,注意到只有新发布的ESP32-C6支持。但是在浏览文档过程中发现ESP-IDF的例程中没有关于如何使用第二个TWAI控制器?请问是否在未来版本的IDF会增加相关例程或修改,如果是的话大概需要多久?
IDF编程文档中有Warning指出“ESP32-C6 has 2 TWAI controllers, but at the moment, the driver can only support TWAI0 due to the limitation of the driver structure.”

Go to advanced search