Fix SD hotswap when using long microSD to SD cables. v4.00.01
authorMichael McMaster <michael@codesrc.com>
Tue, 23 Dec 2014 11:15:52 +0000 (21:15 +1000)
committerMichael McMaster <michael@codesrc.com>
Tue, 23 Dec 2014 11:15:52 +0000 (21:15 +1000)
software/SCSI2SD/src/config.c
software/SCSI2SD/src/sd.c
software/SCSI2SD/v3/SCSI2SD.cydsn/Generated_Source/PSoC5/cymetadata.c
software/SCSI2SD/v3/SCSI2SD.cydsn/SCSI2SD.cyfit
software/SCSI2SD/v3/SCSI2SD.cydsn/TopDesign/TopDesign.cysch
software/SCSI2SD/v4/SCSI2SD.cydsn/Generated_Source/PSoC5/cymetadata.c
software/SCSI2SD/v4/SCSI2SD.cydsn/SCSI2SD.cyfit
software/SCSI2SD/v4/SCSI2SD.cydsn/TopDesign/TopDesign.cysch

index ebff685d3b7d68d26725758e4ba7a321b0738283..492181aa810a537d521f4791f83152aac88a1516 100755 (executable)
@@ -29,7 +29,7 @@
 \r
 #include <string.h>\r
 \r
-static const uint16_t FIRMWARE_VERSION = 0x0400;\r
+static const uint16_t FIRMWARE_VERSION = 0x0401;\r
 \r
 enum USB_ENDPOINTS\r
 {\r
index b7ffab19d26cce5c680b6d4f7d4faa9e3a2dd972..f20ef306eff4a3e198f605ce08b87fe57d362674 100755 (executable)
@@ -782,7 +782,7 @@ void sdPoll()
                SD_CS_Write(0);\r
                SD_CS_SetDriveMode(SD_CS_DM_DIG_HIZ);\r
                \r
-               CyDelayCycles(16);\r
+               CyDelayCycles(64);\r
                uint8_t cs = SD_CS_Read();\r
                SD_CS_SetDriveMode(SD_CS_DM_STRONG)     ;\r
 \r
index a69dd282e352295a56585a1f550fee29ba53419c..7480627d06640e892c64b5aca054b19431071d4e 100644 (file)
@@ -28,7 +28,7 @@ __attribute__ ((__section__(".cyloadablemeta"), used))
 const uint8 cy_meta_loadable[] = {\r
     0x00u, 0x00u, 0x00u, 0x00u, 0x00u, 0x00u, 0x00u, 0x00u,\r
     0x00u, 0x00u, 0x00u, 0x00u, 0x00u, 0x00u, 0x00u, 0x00u,\r
-    0x00u, 0x00u, 0x00u, 0x00u, 0x5Cu, 0xD1u, 0x00u, 0x04u,\r
+    0x00u, 0x00u, 0x00u, 0x00u, 0x5Cu, 0xD1u, 0x01u, 0x04u,\r
     0x01u, 0x00u, 0x00u, 0x00u, 0x00u, 0x00u, 0x00u, 0x00u,\r
     0x00u, 0x00u, 0x00u, 0x00u, 0x00u, 0x00u, 0x00u, 0x00u,\r
     0x00u, 0x00u, 0x00u, 0x00u, 0x00u, 0x00u, 0x00u, 0x00u,\r
index 1e9a3c6973bb2e54417bd6fc4681de15b9fa08ca..11b98e4e946d269ecb563c75ecdeaadac10b65fa 100644 (file)
Binary files a/software/SCSI2SD/v3/SCSI2SD.cydsn/SCSI2SD.cyfit and b/software/SCSI2SD/v3/SCSI2SD.cydsn/SCSI2SD.cyfit differ
index 30fe7b44e748b9d78f07a3910899996f6ca9e3e8..2045a12a77fdc91e31e19e43426d8889df542616 100755 (executable)
Binary files a/software/SCSI2SD/v3/SCSI2SD.cydsn/TopDesign/TopDesign.cysch and b/software/SCSI2SD/v3/SCSI2SD.cydsn/TopDesign/TopDesign.cysch differ
index c9a392d446cbba81860b3fa61fcf6157aab788cf..2c28d90bd066a10dfe3298c64dcc901146148476 100644 (file)
@@ -28,7 +28,7 @@ __attribute__ ((__section__(".cyloadablemeta"), used))
 const uint8 cy_meta_loadable[] = {
     0x00u, 0x00u, 0x00u, 0x00u, 0x00u, 0x00u, 0x00u, 0x00u,
     0x00u, 0x00u, 0x00u, 0x00u, 0x00u, 0x00u, 0x00u, 0x00u,
-    0x00u, 0x00u, 0x00u, 0x00u, 0x5Cu, 0xD1u, 0x00u, 0x04u,
+    0x00u, 0x00u, 0x00u, 0x00u, 0x5Cu, 0xD1u, 0x01u, 0x04u,
     0x01u, 0x00u, 0x00u, 0x00u, 0x00u, 0x00u, 0x00u, 0x00u,
     0x00u, 0x00u, 0x00u, 0x00u, 0x00u, 0x00u, 0x00u, 0x00u,
     0x00u, 0x00u, 0x00u, 0x00u, 0x00u, 0x00u, 0x00u, 0x00u,
index e5c50fb61e5a46481ab84725b9ed16fc56bcdcc0..0ccf4beacc2745d32972eba39a336e64b864dcab 100644 (file)
Binary files a/software/SCSI2SD/v4/SCSI2SD.cydsn/SCSI2SD.cyfit and b/software/SCSI2SD/v4/SCSI2SD.cydsn/SCSI2SD.cyfit differ
index 34535d5c3eef06dd5da77bcefe9efa4141565986..e53358336d7eae9d77eae186989aa40dc02b5f1e 100755 (executable)
Binary files a/software/SCSI2SD/v4/SCSI2SD.cydsn/TopDesign/TopDesign.cysch and b/software/SCSI2SD/v4/SCSI2SD.cydsn/TopDesign/TopDesign.cysch differ