hardware
tfcs pin2
lcdcs pin21
mosi pin11
clk pin12
miso pin13
ret = spi_bus_initialize(SPI2_HOST, &bus_cfg, SDSPI_DEFAULT_DMA);
lcd_init(); //if not run this code mount tf error 0x107
ret = esp_vfs_fat_sdspi_mount(mount_point, &host, &slot_config, &mount_config, &card);
Search found 14 matches
- Wed Jun 04, 2025 11:40 pm
- Forum: ESP-IDF
- Topic: esp32S3 mount TF card return errors 0x107,but run spi-lcd at first ,mount is ok
- Replies: 1
- Views: 73
- Wed Jun 04, 2025 11:29 pm
- Forum: ESP-IDF 中文讨论版
- Topic: 使用ESP-32S3读取TF卡,返回错误 0x107,但是我使用spi-lcd后,就能读取tf卡
- Replies: 0
- Views: 225
使用ESP-32S3读取TF卡,返回错误 0x107,但是我使用spi-lcd后,就能读取tf卡
ret = spi_bus_initialize(SPI2_HOST, &bus_cfg, SDSPI_DEFAULT_DMA);
if (ret != ESP_OK) {
ESP_LOGE(TAG, "Failed to initialize bus.");
return;
}
ESP_LOGI(TAG, "Mounting filesystem");
ret = esp_vfs_fat_sdspi_mount(mount_point, &host, &slot_config, &mount_config, &card);
if (ret != ESP_OK ...
if (ret != ESP_OK) {
ESP_LOGE(TAG, "Failed to initialize bus.");
return;
}
ESP_LOGI(TAG, "Mounting filesystem");
ret = esp_vfs_fat_sdspi_mount(mount_point, &host, &slot_config, &mount_config, &card);
if (ret != ESP_OK ...
- Wed Jun 04, 2025 11:26 pm
- Forum: ESP-IDF 中文讨论版
- Topic: 使用ESP-32S3读取TF卡,返回错误 0x107,但是我使用spi-lcd后,就能读取tf卡
- Replies: 0
- Views: 189
使用ESP-32S3读取TF卡,返回错误 0x107,但是我使用spi-lcd后,就能读取tf卡
ret = spi_bus_initialize(SPI2_HOST, &bus_cfg, SDSPI_DEFAULT_DMA);
if (ret != ESP_OK) {
ESP_LOGE(TAG, "Failed to initialize bus.");
return;
}
ESP_LOGI(TAG, "Mounting filesystem");
ret = esp_vfs_fat_sdspi_mount(mount_point, &host, &slot_config, &mount_config, &card);
if (ret != ESP_OK ...
if (ret != ESP_OK) {
ESP_LOGE(TAG, "Failed to initialize bus.");
return;
}
ESP_LOGI(TAG, "Mounting filesystem");
ret = esp_vfs_fat_sdspi_mount(mount_point, &host, &slot_config, &mount_config, &card);
if (ret != ESP_OK ...
- Wed Jun 04, 2025 11:25 pm
- Forum: ESP-IDF 中文讨论版
- Topic: 使用ESP-32S3读取TF卡,返回错误 0x107,但是我使用spi-lcd后,就能读取tf卡
- Replies: 0
- Views: 194
使用ESP-32S3读取TF卡,返回错误 0x107,但是我使用spi-lcd后,就能读取tf卡
ret = spi_bus_initialize(SPI2_HOST, &bus_cfg, SDSPI_DEFAULT_DMA);
if (ret != ESP_OK) {
ESP_LOGE(TAG, "Failed to initialize bus.");
return;
}
ESP_LOGI(TAG, "Mounting filesystem");
ret = esp_vfs_fat_sdspi_mount(mount_point, &host, &slot_config, &mount_config, &card);
if (ret != ESP_OK) {
....
if (ret != ESP_OK) {
ESP_LOGE(TAG, "Failed to initialize bus.");
return;
}
ESP_LOGI(TAG, "Mounting filesystem");
ret = esp_vfs_fat_sdspi_mount(mount_point, &host, &slot_config, &mount_config, &card);
if (ret != ESP_OK) {
....
- Thu Apr 27, 2023 5:42 am
- Forum: ESP-IDF
- Topic: use printf in isr,the cpu will restart
- Replies: 2
- Views: 3234
use printf in isr,the cpu will restart
how to use printf in isr savely
- Thu Apr 27, 2023 5:40 am
- Forum: ESP-IDF 中文讨论版
- Topic: esp32s3 在中断里面 printf 会重启,怎么才能在中断里面 printf
- Replies: 1
- Views: 2213
esp32s3 在中断里面 printf 会重启,怎么才能在中断里面 printf
我在定时中断里面 想打印信息,发现printf 会导致重启
应该是 中断堆栈 和 任务堆栈 冲突的问题把
我想实时获取 中断的打印信息,不想通过 消息队列 在任务级别打印
应该怎么处理
应该是 中断堆栈 和 任务堆栈 冲突的问题把
我想实时获取 中断的打印信息,不想通过 消息队列 在任务级别打印
应该怎么处理
- Tue Apr 25, 2023 3:55 am
- Forum: ESP-IDF 中文讨论版
- Topic: 为什么S3的定时器 autoreload 只能autoreload 一次
- Replies: 1
- Views: 1449
Re: 为什么S3的定时器 autoreload 只能autoreload 一次
原来报警位 每次报警后 会自动清零,要重新置位
这个 autoreload 功能被报警位一搞 有点鸡肋了
这个 autoreload 功能被报警位一搞 有点鸡肋了
- Sat Apr 22, 2023 4:37 pm
- Forum: ESP-IDF 中文讨论版
- Topic: 为什么S3的定时器 autoreload 只能autoreload 一次
- Replies: 1
- Views: 1449
为什么S3的定时器 autoreload 只能autoreload 一次
我定义 定时器组0 定时器0 auotoreload 模式 alarm 为 5秒,不打开定时器中断
并且利用freeRtOS 每隔1秒 获取 定时器数数脉冲 进行打印
在第一循环中
定时器的配置如下
#define TIMER_RESOLUTION_HZ 10000
timer_config_t config = {
.clk_src = TIMER_SRC_CLK_DEFAULT,
.divider = APB_CLK_FREQ / TIMER_RESOLUTION_HZ,
.counter_dir = TIMER_COUNT_UP,
.counter_en = TIMER ...
并且利用freeRtOS 每隔1秒 获取 定时器数数脉冲 进行打印
在第一循环中
定时器的配置如下
#define TIMER_RESOLUTION_HZ 10000
timer_config_t config = {
.clk_src = TIMER_SRC_CLK_DEFAULT,
.divider = APB_CLK_FREQ / TIMER_RESOLUTION_HZ,
.counter_dir = TIMER_COUNT_UP,
.counter_en = TIMER ...
- Thu Apr 13, 2023 6:24 am
- Forum: ESP-IDF 中文讨论版
- Topic: 运行 idf.py monitor 后,无法烧录程序,
- Replies: 0
- Views: 1046
运行 idf.py monitor 后,无法烧录程序,
在 vscode 运行 idf.py monitor 后 选择烧录程序 会失败
必须关掉 monitor 才能行,即使 monitor 检测到正在烧录
有什么办法好解决,让它不影响烧录 烧录完又能自动启动
必须关掉 monitor 才能行,即使 monitor 检测到正在烧录
有什么办法好解决,让它不影响烧录 烧录完又能自动启动
- Thu Apr 13, 2023 6:07 am
- Forum: ESP-IDF 中文讨论版
- Topic: esp32s3的mcpwm的疑问,线程安全吗?怎么
- Replies: 1
- Views: 2140
esp32s3的mcpwm的疑问,线程安全吗?怎么
1.官方驱动函数 里面调用了 heap_caps_calloc 创建各种结构体,heap_caps_calloc 函数线程安全吗?
2.mcpwm 有没有中断 例程,当pwm update 的中断 cmp 的中断
void pwm_init(void)
{
// mcpwm timer
//定义变量 timer
mcpwm_timer_handle_t timer;
//定义操作指针 后面的 gen 和 cmp 都是绑定到操作指针上面
mcpwm_oper_handle_t opt;
//定义比较器指针
mcpwm_cmpr_handle_t cmpa;
mcpwm ...
2.mcpwm 有没有中断 例程,当pwm update 的中断 cmp 的中断
void pwm_init(void)
{
// mcpwm timer
//定义变量 timer
mcpwm_timer_handle_t timer;
//定义操作指针 后面的 gen 和 cmp 都是绑定到操作指针上面
mcpwm_oper_handle_t opt;
//定义比较器指针
mcpwm_cmpr_handle_t cmpa;
mcpwm ...