1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
diff --git a/firmware/target/arm/as3525/sd-as3525v2.c b/firmware/target/arm/as3525/sd-as3525v2.c
index 9edc598..60668bc 100644
--- a/firmware/target/arm/as3525/sd-as3525v2.c
+++ b/firmware/target/arm/as3525/sd-as3525v2.c
@@ -397,7 +397,7 @@ static bool send_cmd(const int drive, const int cmd, const int arg, const int fl
 
 #if defined(SANSA_FUZEV2) || defined(SANSA_CLIPPLUS) || defined(SANSA_CLIPZIP)
     if (amsv2_variant == 1)
-        GPIOB_PIN(5) = (drive == INTERNAL_AS3525) ? 1 << 5 : 0;
+        GPIOB_PIN(5) = (0 && drive == INTERNAL_AS3525) ? 1 << 5 : 0;
 #endif
 
     MCI_ARGUMENT = arg;
@@ -407,7 +407,7 @@ static bool send_cmd(const int drive, const int cmd, const int arg, const int fl
         card_no = 1 << 16;
     else
 #endif
-        card_no = CMD_CARD_NO(drive);
+        card_no = CMD_CARD_NO(1);
 
     /* Construct MCI_COMMAND  */
     MCI_COMMAND =
@@ -567,7 +567,7 @@ static int sd_init_card(const int drive)
         MCI_CTYPE |= 1<<1;
     else
 #endif
-        MCI_CTYPE |= (1<<drive);
+        MCI_CTYPE |= (1<<1);
 
 #endif /* ! BOOTLOADER */
 
@@ -577,7 +577,7 @@ static int sd_init_card(const int drive)
         MCI_CLKENA |= 1<<(1 + 16);
     else
 #endif
-        MCI_CLKENA |= 1<<(drive + 16);
+        MCI_CLKENA |= 1<<(1 + 16);
 
     card_info[drive].initialized = 1;
 
@@ -801,11 +801,11 @@ static int sd_transfer_sectors(IF_MD2(int drive,) unsigned long start,
     }
 
     /* skip SanDisk OF */
-    if (drive == INTERNAL_AS3525)
+    if (0 && drive == INTERNAL_AS3525)
         start += AMS_OF_SIZE;
 
     /* no need for complete retry on main, just SD */
-    if (drive == SD_SLOT_AS3525)
+    if (1 || drive == SD_SLOT_AS3525)
         retry_all = retry_all_max;
 
 sd_transfer_retry_with_reinit:
@@ -820,7 +820,7 @@ sd_transfer_retry_with_reinit:
     real_numblocks = card_info[drive].numblocks;
     /* 'start' represents the real (physical) starting sector
      *  so we must compare it to the real (physical) number of sectors */
-    if (drive == INTERNAL_AS3525)
+    if (0 && drive == INTERNAL_AS3525)
         real_numblocks += AMS_OF_SIZE;
     if ((start+count) > real_numblocks)
     {