From: Uwe Hermann Date: Mon, 13 Oct 2014 15:11:37 +0000 (+0200) Subject: Add a few avr_isp tests. X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=7b5df639850f248da957c3bd371da3604bf8de05;p=sigrok-test.git Add a few avr_isp tests. --- diff --git a/decoder/test/avr_isp/atmega88_erase_chip.output b/decoder/test/avr_isp/atmega88_erase_chip.output new file mode 100644 index 0000000..52d0739 --- /dev/null +++ b/decoder/test/avr_isp/atmega88_erase_chip.output @@ -0,0 +1,31 @@ +5112726-5114073 avr_isp: pe: "Programming enable" +5112726-5114073 avr_isp: warnings: "Warning: Unexpected bytes in reply!" +5121246-5122595 avr_isp: rsb0: "Vendor code: 0x1e (Atmel)" +5137251-5138600 avr_isp: rsb1: "Part family / memory size: 0x93" +5153263-5154611 avr_isp: rsb2: "Part number: 0x0a" +5137251-5154611 avr_isp: dev: "Device: Atmel ATmega88" +5169269-5170618 avr_isp: rfb: "Read fuse bits: 0xff" +5184610-5185959 avr_isp: rfb: "Read fuse bits: 0xff" +5201287-5202636 avr_isp: rfb: "Read fuse bits: 0xff" +5217299-5218648 avr_isp: rhfb: "Read fuse high bits: 0xdf" +5232632-5233982 avr_isp: rhfb: "Read fuse high bits: 0xdf" +5249311-5250661 avr_isp: rhfb: "Read fuse high bits: 0xdf" +5264650-5265998 avr_isp: refb: "Read extended fuse bits: 0xf9" +5281330-5282678 avr_isp: refb: "Read extended fuse bits: 0xf9" +5297338-5298687 avr_isp: refb: "Read extended fuse bits: 0xf9" +5312699-5314048 avr_isp: pe: "Unknown command: a0 01 fc 00 (reply: 00 a0 01 ff)!" +5329353-5330702 avr_isp: pe: "Unknown command: a0 01 fd 00 (reply: 00 a0 01 ff)!" +5344691-5346042 avr_isp: pe: "Unknown command: a0 01 fe 00 (reply: 00 a0 01 ff)!" +5360931-5362282 avr_isp: pe: "Unknown command: a0 01 ff 00 (reply: 00 a0 01 ff)!" +5376907-5378241 avr_isp: ce: "Chip erase" +5674961-5676308 avr_isp: pe: "Programming enable" +5674961-5676308 avr_isp: warnings: "Warning: Unexpected bytes in reply!" +5685574-5686923 avr_isp: rfb: "Read fuse bits: 0xff" +5701579-5702926 avr_isp: rfb: "Read fuse bits: 0xff" +5716887-5718236 avr_isp: rfb: "Read fuse bits: 0xff" +5733582-5734932 avr_isp: rhfb: "Read fuse high bits: 0xdf" +5748917-5750266 avr_isp: rhfb: "Read fuse high bits: 0xdf" +5765626-5766975 avr_isp: rhfb: "Read fuse high bits: 0xdf" +5781366-5782715 avr_isp: refb: "Read extended fuse bits: 0xf9" +5797100-5798448 avr_isp: refb: "Read extended fuse bits: 0xf9" +5813639-5814987 avr_isp: refb: "Read extended fuse bits: 0xf9" diff --git a/decoder/test/avr_isp/atmega88_read_lfuse.output b/decoder/test/avr_isp/atmega88_read_lfuse.output new file mode 100644 index 0000000..5273278 --- /dev/null +++ b/decoder/test/avr_isp/atmega88_read_lfuse.output @@ -0,0 +1,29 @@ +5873609-5874955 avr_isp: pe: "Programming enable" +5873609-5874955 avr_isp: warnings: "Warning: Unexpected bytes in reply!" +5881971-5883320 avr_isp: rsb0: "Vendor code: 0x1e (Atmel)" +5897965-5899314 avr_isp: rsb1: "Part family / memory size: 0x93" +5913465-5914813 avr_isp: rsb2: "Part number: 0x0a" +5897965-5914813 avr_isp: dev: "Device: Atmel ATmega88" +5929981-5931328 avr_isp: rfb: "Read fuse bits: 0xff" +5945990-5947339 avr_isp: rfb: "Read fuse bits: 0xff" +5962014-5963363 avr_isp: rfb: "Read fuse bits: 0xff" +5978006-5979356 avr_isp: rhfb: "Read fuse high bits: 0xdf" +5993350-5994699 avr_isp: rhfb: "Read fuse high bits: 0xdf" +6010024-6011373 avr_isp: rhfb: "Read fuse high bits: 0xdf" +6026034-6027382 avr_isp: refb: "Read extended fuse bits: 0xf9" +6041368-6042716 avr_isp: refb: "Read extended fuse bits: 0xf9" +6057592-6058940 avr_isp: refb: "Read extended fuse bits: 0xf9" +6073389-6074740 avr_isp: pe: "Unknown command: a0 01 fc 00 (reply: 00 a0 01 ff)!" +6090091-6091442 avr_isp: pe: "Unknown command: a0 01 fd 00 (reply: 00 a0 01 ff)!" +6106091-6107442 avr_isp: pe: "Unknown command: a0 01 fe 00 (reply: 00 a0 01 ff)!" +6121409-6122760 avr_isp: pe: "Unknown command: a0 01 ff 00 (reply: 00 a0 01 ff)!" +6138099-6139448 avr_isp: rfb: "Read fuse bits: 0xff" +6153440-6154789 avr_isp: rfb: "Read fuse bits: 0xff" +6170107-6171456 avr_isp: rfb: "Read fuse bits: 0xff" +6186118-6187467 avr_isp: rfb: "Read fuse bits: 0xff" +6201452-6202801 avr_isp: rhfb: "Read fuse high bits: 0xdf" +6218139-6219489 avr_isp: rhfb: "Read fuse high bits: 0xdf" +6233629-6234979 avr_isp: rhfb: "Read fuse high bits: 0xdf" +6250153-6251502 avr_isp: refb: "Read extended fuse bits: 0xf9" +6266158-6267507 avr_isp: refb: "Read extended fuse bits: 0xf9" +6281493-6282842 avr_isp: refb: "Read extended fuse bits: 0xf9" diff --git a/decoder/test/avr_isp/atmega88_scan.output b/decoder/test/avr_isp/atmega88_scan.output new file mode 100644 index 0000000..3610c10 --- /dev/null +++ b/decoder/test/avr_isp/atmega88_scan.output @@ -0,0 +1,28 @@ +6452172-6453517 avr_isp: pe: "Programming enable" +6452172-6453517 avr_isp: warnings: "Warning: Unexpected bytes in reply!" +6460715-6462063 avr_isp: rsb0: "Vendor code: 0x1e (Atmel)" +6476216-6477565 avr_isp: rsb1: "Part family / memory size: 0x93" +6492733-6494082 avr_isp: rsb2: "Part number: 0x0a" +6476216-6494082 avr_isp: dev: "Device: Atmel ATmega88" +6508746-6510095 avr_isp: rfb: "Read fuse bits: 0xff" +6524078-6525427 avr_isp: rfb: "Read fuse bits: 0xff" +6540762-6542111 avr_isp: rfb: "Read fuse bits: 0xff" +6556109-6557458 avr_isp: rhfb: "Read fuse high bits: 0xdf" +6572779-6574128 avr_isp: rhfb: "Read fuse high bits: 0xdf" +6588784-6590134 avr_isp: rhfb: "Read fuse high bits: 0xdf" +6604121-6605470 avr_isp: refb: "Read extended fuse bits: 0xf9" +6620800-6622149 avr_isp: refb: "Read extended fuse bits: 0xf9" +6636153-6637502 avr_isp: refb: "Read extended fuse bits: 0xf9" +6652190-6653540 avr_isp: pe: "Unknown command: a0 01 fc 00 (reply: 00 a0 01 ff)!" +6668387-6669738 avr_isp: pe: "Unknown command: a0 01 fd 00 (reply: 00 a0 01 ff)!" +6684163-6685514 avr_isp: pe: "Unknown command: a0 01 fe 00 (reply: 00 a0 01 ff)!" +6700843-6702194 avr_isp: pe: "Unknown command: a0 01 ff 00 (reply: 00 a0 01 ff)!" +6716410-6717759 avr_isp: rfb: "Read fuse bits: 0xff" +6732620-6733969 avr_isp: rfb: "Read fuse bits: 0xff" +6748623-6749972 avr_isp: rfb: "Read fuse bits: 0xff" +6764207-6765557 avr_isp: rhfb: "Read fuse high bits: 0xdf" +6780886-6782234 avr_isp: rhfb: "Read fuse high bits: 0xdf" +6796903-6798252 avr_isp: rhfb: "Read fuse high bits: 0xdf" +6813111-6814459 avr_isp: refb: "Read extended fuse bits: 0xf9" +6828914-6830263 avr_isp: refb: "Read extended fuse bits: 0xf9" +6844409-6845757 avr_isp: refb: "Read extended fuse bits: 0xf9" diff --git a/decoder/test/avr_isp/test.conf b/decoder/test/avr_isp/test.conf new file mode 100644 index 0000000..f164fcc --- /dev/null +++ b/decoder/test/avr_isp/test.conf @@ -0,0 +1,20 @@ +test atmega88_scan + protocol-decoder spi channel cs=1 channel clk=2 channel mosi=0 channel miso=3 + protocol-decoder avr_isp + stack spi avr_isp + input avr_isp/atmega88/isp_atmega88_scan.sr + output avr_isp annotation match atmega88_scan.output + +test atmega88_erase_chip + protocol-decoder spi channel cs=1 channel clk=2 channel mosi=0 channel miso=3 + protocol-decoder avr_isp + stack spi avr_isp + input avr_isp/atmega88/isp_atmega88_erase_chip.sr + output avr_isp annotation match atmega88_erase_chip.output + +test atmega88_read_lfuse + protocol-decoder spi channel cs=1 channel clk=2 channel mosi=0 channel miso=3 + protocol-decoder avr_isp + stack spi avr_isp + input avr_isp/atmega88/isp_atmega88_read_lfuse.sr + output avr_isp annotation match atmega88_read_lfuse.output