spi sd卡连续写入时会出0x109错误

Weizzh
Posts: 19
Joined: Mon Nov 22, 2021 9:32 am

spi sd卡连续写入时会出0x109错误

Postby Weizzh » Fri Jan 07, 2022 2:44 am

idf版本ESP-IDF v4.2-dev-1304-gaeff546-dirty,芯片ESP32-WROVER-B
用spi连接sd卡,pin管脚用的是12\13\14\15,速度20M
挂载和基本的文件操作没有问题,但是在连续写入时(用的是i2s例程,大约每100ms左右写入10k byte)。
结果发现经常写了2~3M数据就出错了。尝试了更低的速度,结果变得更差。有时会在写了十几k就出错,问题可能出现在哪里?
receive message from the queue. have written 4194304 bytes to sd card.
and free heep size: 211848
E (44594) sdmmc_cmd: sdmmc_write_sectors_dma: sdmmc_send_cmd returned 0x109
E (44594) diskio_sdmmc: sdmmc_write_blocks failed (265)
receive message from the queue. have written 4194304 bytes to sd card.

Who is online

Users browsing this forum: No registered users and 82 guests