summaryrefslogtreecommitdiff
path: root/decoder/test/sdcard_spi
diff options
context:
space:
mode:
authorUwe Hermann <uwe@hermann-uwe.de>2019-06-30 15:30:55 +0200
committerUwe Hermann <uwe@hermann-uwe.de>2019-06-30 16:25:43 +0200
commita2d73da38a9eb1a810979c64b6e749a1cc251c9e (patch)
treeb9e70e4417bc26327a29a3a4ed718f20f58ec997 /decoder/test/sdcard_spi
parentd7a31c505fd6e5d38b0f218fa1bf906040e0fa5d (diff)
downloadsigrok-test-a2d73da38a9eb1a810979c64b6e749a1cc251c9e.tar.gz
sigrok-test-a2d73da38a9eb1a810979c64b6e749a1cc251c9e.zip
sdcard_spi: Add a CMD17 test-case.
Diffstat (limited to 'decoder/test/sdcard_spi')
-rw-r--r--decoder/test/sdcard_spi/cmd17.output19
-rw-r--r--decoder/test/sdcard_spi/test.conf7
2 files changed, 26 insertions, 0 deletions
diff --git a/decoder/test/sdcard_spi/cmd17.output b/decoder/test/sdcard_spi/cmd17.output
new file mode 100644
index 0000000..9ff72e1
--- /dev/null
+++ b/decoder/test/sdcard_spi/cmd17.output
@@ -0,0 +1,19 @@
+114-135 sdcard_spi: bit-warnings: "Start bit: 0"
+135-156 sdcard_spi: bit-warnings: "Transmitter bit: 1"
+156-281 sdcard_spi: bit-warnings: "Command: CMD17 (READ_SINGLE_BLOCK)"
+307-1050 sdcard_spi: bit-warnings: "Argument: 0x000f"
+1074-1220 sdcard_spi: bit-warnings: "CRC7: 0x0"
+1220-1240 sdcard_spi: bit-warnings: "End bit: 1"
+114-1240 sdcard_spi: cmd17: "CMD17 (READ_SINGLE_BLOCK): Read a block from address 0x000f"
+1459-1626 sdcard_spi: acmd1: "R1: 0x00"
+1605-1626 sdcard_spi: bit-warnings: "Card is not in idle state"
+1584-1605 sdcard_spi: bit-warnings: "Erase sequence not cleared"
+1563-1584 sdcard_spi: bit-warnings: "No illegal command detected"
+1542-1563 sdcard_spi: bit-warnings: "CRC check of last command was successful"
+1521-1542 sdcard_spi: bit-warnings: "No error in the sequence of erase commands"
+1500-1521 sdcard_spi: bit-warnings: "No misaligned address used in command"
+1480-1500 sdcard_spi: bit-warnings: "Command argument not outside allowed range"
+1459-1480 sdcard_spi: bit-warnings: "Bit 7 (always 0)"
+9250-9417 sdcard_spi: cmd17: "Start Block"
+9452-110815 sdcard_spi: cmd17: "Block data: [83, 105, 103, 114, 111, 107, 32, 114, 111, 99, 107, 115, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]"
+110845-111202 sdcard_spi: cmd17: "CRC"
diff --git a/decoder/test/sdcard_spi/test.conf b/decoder/test/sdcard_spi/test.conf
index d551f8a..f76119d 100644
--- a/decoder/test/sdcard_spi/test.conf
+++ b/decoder/test/sdcard_spi/test.conf
@@ -25,3 +25,10 @@ test data_transfer_complete_real
stack spi sdcard_spi
input sdcard/spi_mode/write_single_block/data_transfer_complete_real.sr
output sdcard_spi annotation match data_transfer_complete_real.output
+
+test cmd17
+ protocol-decoder spi channel cs=3 channel mosi=0 channel clk=2 channel miso=1
+ protocol-decoder sdcard_spi
+ stack spi sdcard_spi
+ input sdcard/spi_mode/cmds/cmd17.sr
+ output sdcard_spi annotation match cmd17.output