]> sigrok.org Git - sigrok-test.git/commitdiff
sdcard_spi: Add CMD24 test-cases.
authorUwe Hermann <redacted>
Mon, 15 Apr 2019 16:29:39 +0000 (18:29 +0200)
committerUwe Hermann <redacted>
Mon, 15 Apr 2019 18:17:10 +0000 (20:17 +0200)
decoder/test/sdcard_spi/data_transfer_complete_simulated.output [new file with mode: 0644]
decoder/test/sdcard_spi/data_transfer_start_snippet.output [new file with mode: 0644]
decoder/test/sdcard_spi/test.conf

diff --git a/decoder/test/sdcard_spi/data_transfer_complete_simulated.output b/decoder/test/sdcard_spi/data_transfer_complete_simulated.output
new file mode 100644 (file)
index 0000000..c665cc3
--- /dev/null
@@ -0,0 +1,24 @@
+186-196 sdcard_spi: bit-warnings: "Start bit: 0"
+196-206 sdcard_spi: bit-warnings: "Transmitter bit: 1"
+206-266 sdcard_spi: bit-warnings: "Command: CMD24 (WRITE_BLOCK)"
+276-626 sdcard_spi: bit-warnings: "Argument: 0x0001"
+636-706 sdcard_spi: bit-warnings: "CRC7: 0x0"
+706-716 sdcard_spi: bit-warnings: "End bit: 1"
+706-716 sdcard_spi: bit-warnings: "End bit: 1"
+186-716 sdcard_spi: cmd24: "CMD24 (WRITE_BLOCK): Write a block to address 0x0001"
+816-896 sdcard_spi: acmd1: "R1: 0x00"
+886-896 sdcard_spi: bit-warnings: "Card is not in idle state"
+876-886 sdcard_spi: bit-warnings: "Erase sequence not cleared"
+866-876 sdcard_spi: bit-warnings: "No illegal command detected"
+856-866 sdcard_spi: bit-warnings: "CRC check of last command was successful"
+846-856 sdcard_spi: bit-warnings: "No error in the sequence of erase commands"
+836-846 sdcard_spi: bit-warnings: "No misaligned address used in command"
+826-836 sdcard_spi: bit-warnings: "Command argument not outside allowed range"
+816-826 sdcard_spi: bit-warnings: "Bit 7 (always 0)"
+996-1076 sdcard_spi: cmd24: "Start Block"
+1086-47156 sdcard_spi: cmd24: "Block data: [0, 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, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 0, 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, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255]"
+47166-47196 sdcard_spi: bit-warnings: "Don't care"
+47196-47206 sdcard_spi: bit-warnings: "Always 0"
+47206-47236 sdcard_spi: bit-warnings: "Data accepted"
+47236-47246 sdcard_spi: bit-warnings: "Always 1"
+47166-47246 sdcard_spi: cmd24: "Data Response"
diff --git a/decoder/test/sdcard_spi/data_transfer_start_snippet.output b/decoder/test/sdcard_spi/data_transfer_start_snippet.output
new file mode 100644 (file)
index 0000000..f6a1872
--- /dev/null
@@ -0,0 +1,18 @@
+312-333 sdcard_spi: bit-warnings: "Start bit: 0"
+333-353 sdcard_spi: bit-warnings: "Transmitter bit: 1"
+353-479 sdcard_spi: bit-warnings: "Command: CMD24 (WRITE_BLOCK)"
+502-1240 sdcard_spi: bit-warnings: "Argument: 0x0001"
+1263-1409 sdcard_spi: bit-warnings: "CRC7: 0x0"
+1409-1430 sdcard_spi: bit-warnings: "End bit: 1"
+1409-1430 sdcard_spi: bit-warnings: "End bit: 1"
+312-1430 sdcard_spi: cmd24: "CMD24 (WRITE_BLOCK): Write a block to address 0x0001"
+14900-15067 sdcard_spi: acmd1: "R1: 0x00"
+15046-15067 sdcard_spi: bit-warnings: "Card is not in idle state"
+15025-15046 sdcard_spi: bit-warnings: "Erase sequence not cleared"
+15004-15025 sdcard_spi: bit-warnings: "No illegal command detected"
+14983-15004 sdcard_spi: bit-warnings: "CRC check of last command was successful"
+14963-14983 sdcard_spi: bit-warnings: "No error in the sequence of erase commands"
+14942-14963 sdcard_spi: bit-warnings: "No misaligned address used in command"
+14921-14942 sdcard_spi: bit-warnings: "Command argument not outside allowed range"
+14900-14921 sdcard_spi: bit-warnings: "Bit 7 (always 0)"
+44090-44255 sdcard_spi: cmd24: "Start Block"
index 7b82558d7e22f7f92d146d2cb715677bf7b443d2..1c3996bd9b064586657c289f9bf621a383d2dee8 100644 (file)
@@ -4,3 +4,17 @@ test xmore_512mb_get_csd
        stack spi sdcard_spi
        input sdcard/spi_mode/xmore_512mb/xmore_512mb_get_csd.sr
        output sdcard_spi annotation match xmore_512mb_get_csd.output
        stack spi sdcard_spi
        input sdcard/spi_mode/xmore_512mb/xmore_512mb_get_csd.sr
        output sdcard_spi annotation match xmore_512mb_get_csd.output
+
+test data_transfer_start_snippet
+       protocol-decoder spi channel cs=0 channel mosi=1 channel clk=3 channel miso=2
+       protocol-decoder sdcard_spi
+       stack spi sdcard_spi
+       input sdcard/spi_mode/write_single_block/data_transfer_start_snippet.sr
+       output sdcard_spi annotation match data_transfer_start_snippet.output
+
+test data-transfer-complete-simulated
+       protocol-decoder spi channel cs=0 channel mosi=1 channel clk=3 channel miso=2
+       protocol-decoder sdcard_spi
+       stack spi sdcard_spi
+       input sdcard/spi_mode/write_single_block/data_transfer_complete_simulated.sr
+       output sdcard_spi annotation match data_transfer_complete_simulated.output