From: Uwe Hermann Date: Wed, 17 Apr 2019 14:30:00 +0000 (+0200) Subject: sdcard_spi: Add another CMD24 test-case. X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=a6dd266ddca4e1ea937bb8bdda971006e1b3b7fc;p=sigrok-test.git sdcard_spi: Add another CMD24 test-case. --- diff --git a/decoder/test/sdcard_spi/data_transfer_complete_real.output b/decoder/test/sdcard_spi/data_transfer_complete_real.output new file mode 100644 index 0000000..f68e6fa --- /dev/null +++ b/decoder/test/sdcard_spi/data_transfer_complete_real.output @@ -0,0 +1,23 @@ +313-334 sdcard_spi: bit-warnings: "Start bit: 0" +334-354 sdcard_spi: bit-warnings: "Transmitter bit: 1" +354-480 sdcard_spi: bit-warnings: "Command: CMD24 (WRITE_BLOCK)" +505-1248 sdcard_spi: bit-warnings: "Argument: 0x000f" +1273-1419 sdcard_spi: bit-warnings: "CRC7: 0x0" +1419-1440 sdcard_spi: bit-warnings: "End bit: 1" +313-1440 sdcard_spi: cmd24: "CMD24 (WRITE_BLOCK): Write a block to address 0x000f" +1657-1824 sdcard_spi: acmd1: "R1: 0x00" +1803-1824 sdcard_spi: bit-warnings: "Card is not in idle state" +1782-1803 sdcard_spi: bit-warnings: "Erase sequence not cleared" +1761-1782 sdcard_spi: bit-warnings: "No illegal command detected" +1741-1761 sdcard_spi: bit-warnings: "CRC check of last command was successful" +1720-1741 sdcard_spi: bit-warnings: "No error in the sequence of erase commands" +1699-1720 sdcard_spi: bit-warnings: "No misaligned address used in command" +1678-1699 sdcard_spi: bit-warnings: "Command argument not outside allowed range" +1657-1678 sdcard_spi: bit-warnings: "Bit 7 (always 0)" +1877-2044 sdcard_spi: cmd24: "Start Block" +2074-102772 sdcard_spi: cmd24: "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,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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]" +103187-103250 sdcard_spi: bit-warnings: "Don't care" +103250-103271 sdcard_spi: bit-warnings: "Always 0" +103271-103333 sdcard_spi: bit-warnings: "Data accepted" +103333-103354 sdcard_spi: bit-warnings: "Always 1" +103187-103354 sdcard_spi: cmd24: "Data Response" diff --git a/decoder/test/sdcard_spi/test.conf b/decoder/test/sdcard_spi/test.conf index 1c3996b..d551f8a 100644 --- a/decoder/test/sdcard_spi/test.conf +++ b/decoder/test/sdcard_spi/test.conf @@ -12,9 +12,16 @@ test data_transfer_start_snippet 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 +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 + +test data_transfer_complete_real + 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/write_single_block/data_transfer_complete_real.sr + output sdcard_spi annotation match data_transfer_complete_real.output