Project

General

Profile

Actions

Bug #4331

closed

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

Added by laforge over 4 years ago. Updated over 4 years 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 resetResolvedlaforge12/17/2019

Actions
Actions #1

Updated by laforge over 4 years ago

  • % Done changed from 0 to 80
Actions #2

Updated by laforge over 4 years ago

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

patch merged.

Actions #3

Updated by laforge over 4 years ago

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

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 48.8 MB)