Skip to content

Commit

Permalink
WRITEMEM_32BIT: removed checks limit
Browse files Browse the repository at this point in the history
  • Loading branch information
Ant-ON committed Jun 23, 2021
1 parent 9acf539 commit aa70b89
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/stlink-lib/usb.c
Original file line number Diff line number Diff line change
Expand Up @@ -306,12 +306,6 @@ int _stlink_usb_write_mem32(stlink_t *sl, uint32_t addr, uint16_t len) {
unsigned char* const cmd = sl->c_buf;
int i, ret;

if ((sl->version.jtag_api < STLINK_JTAG_API_V3 && len > 64) ||
(sl->version.jtag_api >= STLINK_JTAG_API_V3 && len > 512)) {
ELOG("WRITEMEM_32BIT: bulk packet limits exceeded (data len %d byte)\n", len);
return (-1);
}

i = fill_command(sl, SG_DXFER_TO_DEV, len);
cmd[i++] = STLINK_DEBUG_COMMAND;
cmd[i++] = STLINK_DEBUG_WRITEMEM_32BIT;
Expand Down

0 comments on commit aa70b89

Please sign in to comment.