Skip to content

Instantly share code, notes, and snippets.

@jacobrosenthal
Created January 20, 2020 06:39
Show Gist options
  • Save jacobrosenthal/eb77a618e4e52a08246e85e5281aea13 to your computer and use it in GitHub Desktop.
Save jacobrosenthal/eb77a618e4e52a08246e85e5281aea13 to your computer and use it in GitHub Desktop.
vs 430a83f.diff
diff --git a/his b/his-mine2
index a73f9f4..933e6db 100644
--- a/his
+++ b/his-mine2
@@ -32,14 +32,14 @@ UsbBus::reset
USB_OTHER
ep 0 GOT SETUP
-UsbBus::read 8 bytes from ep EndpointAddress(0) -> [0, 5, 31, 0, 0, 0, 0, 0]
+UsbBus::read 8 bytes from ep EndpointAddress(0) -> [0, 5, 29, 0, 0, 0, 0, 0]
UsbBus::write 0 bytes [] to ep EndpointAddress(128) -> Ok(0)
USB_TRCPT1
ep 0 WRITE DONE
-UsbBus::set_device_address addr=31
+UsbBus::set_device_address addr=29
USB_OTHER
ep 0 GOT SETUP
@@ -68,7 +68,12 @@ UsbBus::write 8 bytes [18, 1, 0, 2, 2, 0, 0, 8] to ep EndpointAddress(128) -> Ok
USB_TRCPT0
ep 0 READABLE
-UsbBus::read 0 bytes from ep EndpointAddress(0) -> []
+UsbBus::read from ep EndpointAddress(0) -> BufferOverflow
+
+ep0 status after read:
+ bk1rdy=0 stallrq1=0 stall1=0 trcpt1=0 trfail1=1 byte_count1=8 multi_packet_size1=0
+ bk0rdy=0 stallrq0=0 stall0=0 trcpt0=0 trfail0=0 byte_count0=8 multi_packet_size0=0
+ curbk=1 dtglin=1 dtglout=1 rxstp=1 lpmsusp=0 lpmnyet=0 ramacer=0 uprsm=0 eorsm=0 wakeup=1 eorst=0 sof=1 suspend=1
UsbBus::stall=true for Out 0
@@ -77,10 +82,7 @@ UsbBus::stall=true for In 0
USB_OTHER
ep 0 GOT SETUP
-UsbBus::read 8 bytes from ep EndpointAddress(0) -> [128, 6, 0, 1, 0, 0, 18, 0]
-
-UsbBus::write 8 bytes [18, 1, 0, 2, 2, 0, 0, 8] to ep EndpointAddress(128) -> Ok(8)
-
+USB_TRCPT1
USB_OTHER
ep 0 GOT SETUP
@@ -98,17 +100,11 @@ ep 0 WRITE FAIL
UsbBus::write 2 bytes [3, 1] to ep EndpointAddress(128) -> Ok(2)
-USB_TRCPT0
+USB_TRCPT1
ep 0 WRITE DONE
UsbBus::stall=false for Out 0
-USB_TRCPT1
-ep 0 READABLE
-
-UsbBus::read 0 bytes from ep EndpointAddress(0) -> []
-
-USB_TRCPT0
USB_OTHER
ep 0 GOT SETUP
@@ -158,7 +154,13 @@ UsbBus::stall=true for Out 0
UsbBus::stall=true for In 0
-USB_TRCPT0
+USB_OTHER
+ep 0 GOT SETUP
+
+UsbBus::read 8 bytes from ep EndpointAddress(0) -> [128, 6, 1, 3, 9, 4, 2, 0]
+
+UsbBus::write 2 bytes [26, 3] to ep EndpointAddress(128) -> Ok(2)
+
USB_OTHER
ep 0 GOT SETUP
@@ -199,17 +201,11 @@ ep 0 WRITE FAIL
UsbBus::write 2 bytes [121, 0] to ep EndpointAddress(128) -> Ok(2)
-USB_TRCPT0
-ep 0 WRITE DONE
-
-UsbBus::stall=false for Out 0
-
USB_TRCPT1
-ep 0 READABLE
+ep 0 WRITE FAIL
-UsbBus::read 0 bytes from ep EndpointAddress(0) -> []
+UsbBus::stall=false for Out 0
-USB_TRCPT0
USB_OTHER
ep 0 GOT SETUP
@@ -240,25 +236,19 @@ ep 0 WRITE FAIL
UsbBus::write 2 bytes [84, 0] to ep EndpointAddress(128) -> Ok(2)
-USB_TRCPT0
-ep 0 WRITE DONE
+USB_OTHER
+ep 0 WRITE FAIL
UsbBus::stall=false for Out 0
-USB_TRCPT1
-ep 0 READABLE
-
-UsbBus::read 0 bytes from ep EndpointAddress(0) -> []
-
USB_TRCPT0
-USB_OTHER
ep 0 GOT SETUP
UsbBus::read 8 bytes from ep EndpointAddress(0) -> [128, 6, 0, 2, 0, 0, 9, 0]
UsbBus::write 8 bytes [9, 2, 67, 0, 2, 1, 0, 128] to ep EndpointAddress(128) -> Ok(8)
-USB_TRCPT1
+USB_OTHER
ep 0 WRITE FAIL
UsbBus::write 1 bytes [50] to ep EndpointAddress(128) -> Ok(1)
@@ -268,6 +258,12 @@ ep 0 WRITE DONE
UsbBus::stall=false for Out 0
+USB_TRCPT1
+ep 0 READABLE
+
+UsbBus::read 0 bytes from ep EndpointAddress(0) -> []
+
+USB_TRCPT0
USB_OTHER
ep 0 GOT SETUP
@@ -275,7 +271,7 @@ UsbBus::read 8 bytes from ep EndpointAddress(0) -> [128, 6, 0, 2, 0, 0, 67, 0]
UsbBus::write 8 bytes [9, 2, 67, 0, 2, 1, 0, 128] to ep EndpointAddress(128) -> Ok(8)
-USB_TRCPT0
+USB_TRCPT1
ep 0 WRITE FAIL
UsbBus::write 8 bytes [50, 9, 4, 0, 0, 1, 2, 2] to ep EndpointAddress(128) -> Ok(8)
@@ -315,24 +311,19 @@ ep 0 WRITE FAIL
UsbBus::write 3 bytes [64, 0, 0] to ep EndpointAddress(128) -> Ok(3)
-USB_TRCPT0
-ep 0 WRITE DONE
+USB_OTHER
+ep 0 WRITE FAIL
UsbBus::stall=false for Out 0
-USB_TRCPT1
-ep 0 READABLE
-
-UsbBus::read 0 bytes from ep EndpointAddress(0) -> []
-
-USB_OTHER
+USB_TRCPT0
ep 0 GOT SETUP
UsbBus::read 8 bytes from ep EndpointAddress(0) -> [0, 9, 1, 0, 0, 0, 0, 0]
UsbBus::write 0 bytes [] to ep EndpointAddress(128) -> Ok(0)
-USB_TRCPT0
+USB_OTHER
ep 0 WRITE DONE
USB_TRCPT1
@@ -433,25 +424,24 @@ UsbBus::read 7 bytes from ep EndpointAddress(0) -> [0, 194, 1, 0, 0, 0, 8]
UsbBus::write 0 bytes [] to ep EndpointAddress(128) -> Ok(0)
-USB_OTHER
+USB_TRCPT1
ep 0 WRITE DONE
-USB_TRCPT1
+USB_OTHER
ep 0 GOT SETUP
UsbBus::read 8 bytes from ep EndpointAddress(0) -> [33, 32, 0, 0, 0, 0, 7, 0]
-USB_OTHER
+USB_TRCPT0
ep 0 READABLE
UsbBus::read 7 bytes from ep EndpointAddress(0) -> [0, 194, 1, 0, 0, 0, 8]
UsbBus::write 0 bytes [] to ep EndpointAddress(128) -> Ok(0)
-USB_TRCPT0
+USB_TRCPT1
ep 0 WRITE DONE
-USB_TRCPT1
USB_OTHER
ep 0 GOT SETUP
@@ -481,4 +471,3 @@ UsbBus::write 0 bytes [] to ep EndpointAddress(128) -> Ok(0)
USB_TRCPT1
ep 0 WRITE DONE
-
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment