Project

General

Profile

Bug #4331

simtrace2 firmware fails to zend zero-length packet on IN endpoint if transfer size == wMaxPacketSize

Added by laforge 9 months ago. Updated 9 months ago.

Status:
Resolved
Priority:
High
Assignee:
Category:
firmware
Target version:
-
Start date:
12/15/2019
Due date:
% Done:

100%

Spec Reference:

Description

wMaxPacketSize for full-speed devices such as the SAM3S devices as per the USB specification is 64.

Similar to what's known from DFU transfers on control transfers, we also need to send zero-length packets on bulk endpoints whenever the transfer size is exactly a multiple of the wMaxPacketSize. See USB 2.0 Specification Section 5.8.3 Bulk Transfer Packet Size constraints.

This is not implemented in the simtrace2 firmware and I just hit this reliably when a 50 byte APDU payload was transferred (which tother with our headers added up to 64 bytes).


Related issues

Related to SIMtrace 2 - Bug #4335: Unexpected/malformed data from SIM applet causes simtrace2-sniff to stop until simtrace2 board is resetNew12/17/2019

History

#1 Updated by laforge 9 months ago

  • % Done changed from 0 to 80

#2 Updated by laforge 9 months ago

  • Status changed from In Progress to Resolved
  • % Done changed from 80 to 100

patch merged.

#3 Updated by laforge 9 months ago

  • Related to Bug #4335: Unexpected/malformed data from SIM applet causes simtrace2-sniff to stop until simtrace2 board is reset added

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 48.8 MB)