Skip to content

Conversation

@MiloradCvjetkovic
Copy link

If length of data for sending was less than DAP packet size but exactly a multiple of USB endpoint maximum packet size a dummy byte (0) was artificially appended to transfer to ensure the transfer termination. This was updated to send zero-length packet instead of a dummy byte.

This PR addresses the issue #1871.

@RobertRostohar RobertRostohar self-requested a review December 18, 2025 08:39
@RobertRostohar
Copy link
Collaborator

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@RobertRostohar RobertRostohar marked this pull request as draft December 18, 2025 08:56
@RobertRostohar RobertRostohar marked this pull request as ready for review December 18, 2025 08:56
If length of data for sending was less than DAP packet size but exactly a multiple of
USB endpoint maximum packet size a dummy byte (0) was artificially appended to transfer
to ensure the transfer termination.

This was updated to send zero-length packet instead of a dummy byte.
@RobertRostohar
Copy link
Collaborator

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@RobertRostohar RobertRostohar merged commit 95c16a5 into pyocd:develop Dec 18, 2025
41 of 42 checks passed
@MiloradCvjetkovic MiloradCvjetkovic deleted the dap_usb branch December 18, 2025 10:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants