pyOCD icon indicating copy to clipboard operation
pyOCD copied to clipboard

probe: cmsis-dap: use Transfer command for one-byte transfer

Open kkitayam opened this issue 8 months ago • 0 comments

In current implementation, one-byte transfer is encoded with TransferBlock command. But, in case of one-byte transfer, it is better to use Transfer command to reduce USB packet size.

TransferBlock command with one-byte read consumes 5 bytes size. Transfer command with one-byte read consumes 4 bytes size. TransferBlock command with one-byte write consumes 9 bytes size. Transfer command with one-byte write consumes 8 bytes size.

kkitayam avatar Oct 26 '23 15:10 kkitayam