本帖最后由 xiaoch669 于 2024-2-20 09:43 编辑
sd卡类型:micro SD HC
格式化类型 FAT32,分配单元4096字节
sd卡转接板:
运行了aithinker_Ai-M6X_SDK\examples\fatfs项目,sd挂载成功,写文件时报错:
[I][MAIN] FileSystem cluster size:8-sectors (4096-Byte)
[I][MAIN] ******************** be about to write test... **********************
[F][MAIN] Fail to write files(1) num:0
查询报错码
网上查询原因:最多的情况是SDIO访问时钟频率过高导致
在aithinker_Ai-M6X_SDK\bsp\common\sdcard\sdh_sdcard.c中,发现频率也没问题。
注:经过测试,读文件没有问题。
特意来请教大佬。
|