mirror of
https://github.com/Creased/RCM-Emulator.git
synced 2026-12-06 02:48:11 +01:00
Leave the SD slot empty when there is no SD image
Without --sd (and no sd.img in the working directory) the emulator still presented a card: a blank one, which SDMMC1 initialised at SDR104 and FatFs then found no volume on. A console with nothing in the slot shows the payload no card at all. Now the slot starts empty when there is no image: card detect (PZ1) reads no card and every SDMMC1 command times out, which the existing [sd] inserted = 0 path already modelled. The config window's SD toggle can still insert a blank card at runtime. hwtest, which CI runs without --sd, now reports sd_initialize failing and the SD as not ready instead of an unformatted 32 GiB card; its verdict goes from 35 to 34 passes with no failures, and every CI expectation still holds. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01YYewwDPujjo5B2xRyC5Grb
This commit is contained in:
3 files changed
+16
-3
No files matched your search
@@ -181,7 +181,11 @@ SDR104 like the real slot:
|
||||
their defaults, not the voltage.
|
||||
- CMD19 tunes the SDR104 sampling point through the same tuning circuit as
|
||||
the eMMC. hwtest reports a 199.68 MHz card clock.
|
||||
- The CSD is an SD CSD 2.0 (SD 5.3.3): the image's size (32 GiB with none)
|
||||
- With no image (`--sd`, or `sd.img` in the working directory) the slot is
|
||||
empty: card detect (PZ1) reads no card and every SDMMC1 command times
|
||||
out, as on a console with no card in. The config window can still insert
|
||||
a blank card.
|
||||
- The CSD is an SD CSD 2.0 (SD 5.3.3): the image's size (32 GiB for a blank card)
|
||||
and command classes that include class 8, so bdk reads the SD status.
|
||||
That (ACMD13) reports the bus width ACMD6 set and a Class 10, U1, V10
|
||||
card with 4 MB AUs; the SCR sets SD_SPEC3.
|
||||
|
||||
Reference in new issue
Block a user