Skip to content

Add support for SDSC (≤2GiB) SD cards#224

Merged
Ivan-Velickovic merged 1 commit into
mainfrom
julia/mmc-ver2-sdsc-sdxc-cards
Sep 2, 2024
Merged

Add support for SDSC (≤2GiB) SD cards#224
Ivan-Velickovic merged 1 commit into
mainfrom
julia/mmc-ver2-sdsc-sdxc-cards

Conversation

@midnightveil

@midnightveil midnightveil commented Aug 30, 2024

Copy link
Copy Markdown
Contributor

Tested on on a 2GiB SDSC Card, matches with mmc-utils on Linux.

CSD Version: 0
READ_BL_LEN: a
C_SIZE: eaf
C_SIZE_MULT: 7
uSDHC DRIVER|ERROR: Card size (blocks): 481280
Hello from client
[   0] = 0x3
[   1] = 0x4
[   2] = 0x5
[   3] = 0x6
[ 508] = 0xff
[ 509] = 0x0
[ 510] = 0x1
[ 511] = 0x2
[ 512] = 0x3
[ 513] = 0x4
[ 514] = 0x5
[ 515] = 0x6
[ 516] = 0x7
[4092] = 0xff
[4093] = 0x0
[4094] = 0x1
[4095] = 0x2
[4096] = 0x3
[4097] = 0x4
[NW-3] = 0x0
[NW-2] = 0x1
[NWB-] = 0x2

[NWB=] = 0x0
[NWB+] = 0x0
[NW++] = 0x0
[NR-2] = 0x0
[NR-1] = 0x0

[NRB=] = 0x3
[NR+1] = 0x4
[NR+2] = 0x5
[NR+3] = 0x6
Client read/write data is correct!

In theory, should also work on SDXC (32GiB -> 2TiB) and SDUC (> 2TiB), though we don't have cards to test.

Waiting on #206 to merge first.
Part of #187.

Base automatically changed from julia/mmc-usdhc-reliability to main September 2, 2024 01:13
Signed-off-by: julia <git.ts@trainwit.ch>
@Ivan-Velickovic Ivan-Velickovic force-pushed the julia/mmc-ver2-sdsc-sdxc-cards branch from 740f19a to e1056d0 Compare September 2, 2024 01:13
@Ivan-Velickovic Ivan-Velickovic merged commit fc085e0 into main Sep 2, 2024
@Ivan-Velickovic Ivan-Velickovic deleted the julia/mmc-ver2-sdsc-sdxc-cards branch September 2, 2024 01:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants