以下是用32G的sd卡启动后显示:
\ | /
- RT - Thread Operating System
/ | \ 5.0.0 build May 21 2023 22:11:05
2006 - 2022 Copyright by RT-Thread team
lwIP-2.1.2 initialized!
[3] I/CRYPTO: TRNG is used as default RNG.
[8] I/I2C: I2C bus [i2c2] registered
psNuI2sDai->fifo=2002f0a8
psNuI2sDai->fifo=2002f8b4
[17] I/utest: utest is initialize success.
[21] I/utest: total utest testcase num: (0)
[26] I/sal.skt: Socket Abstraction Layer initialize success.
[32] E/DFS: mount fs[elm] on /mnt/ram_usbd failed.
[D/FAL] (fal_flash_init:49) Flash device | OnChip_APROM | addr: 0x00000000 | len: 0x00100000 | blk_size: 0
x00001000 |initialized finish.
[D/FAL] (fal_flash_init:49) Flash device | OnChip_LDROM | addr: 0x0f100000 | len: 0x0f102000 | blk_size: 0x000
01000 |initialized finish.
[72] E/SFUD: ERROR: Flash device norflash0 not found!
[D/FAL] (fal_flash_init:49) Flash device | norflash0 | addr: 0x00000000 | len: 0x00800000 | blk_size: 0
x00001000 |initialized finish.
[I/FAL] ==================== FAL partition table ====================
[I/FAL] | name | flash_dev | offset | length |
[I/FAL] -------------------------------------------------------------
[I/FAL] | filesystem | norflash0 | 0x00000000 | 0x00800000 |
[I/FAL] | ldrom | OnChip_LDROM | 0x00000000 | 0x00001000 |
[I/FAL] | aprom | OnChip_APROM | 0x00060000 | 0x00020000 |
[I/FAL] =============================================================
[I/FAL] RT-Thread Flash Abstraction Layer initialize success.
msh />[218] I/sensor.nct7717u: CID=50 VID=50 DID=91
[221] I/sensor: rt_sensor[temp_nct7717u] init success
[404] I/SDIO: SD card capacity 31636480 KB.
[414] D/SDIO: probe mmcsd block device!
found part[0], begin: 512, size: 2047.1023GB
[420] I/SDIO: try to mount file system!
[425] E/DFS: mount fs[elm] device[sd0p0] to /mnt/sd0p0 failed.
[431] I/SDIO: try to mount file system!
[436] E/DFS: mount fs[elm] device[sd0] to /mnt/sd0 failed.
先识别的容量是正确的:
[404] I/SDIO: SD card capacity 31636480 KB.
随后报的容量就飘了:
found part[0], begin: 512, size: 2047.1023GB
换了2张32G的sd卡了,电脑上都是好的。
然后换了512M的SD NAND,芯片焊在PCB卡上,识别容量正确,写入文件也正确。
用这个软件可以正常识别了:
为什么windows下格式化能正常使用的sd卡会出错呢?
I think the issue should relate to MBR. SD formatter can erase it.