Skip to content

Unexpected flushing of empty frames (ESPTOOL-1250) #33

@g3gg0

Description

@g3gg0

Here is some issue I found while using the stubs on a lower level

Already wrote there

The SLIP start marker (0xC0) which is the same as the end marker (0xC0) already causes a transmit on every first byte written to the buffer.
So any "single-transfer" kind of frame already triggers **three** bulk transfers on the USB-JTAG.

This is the line:

if (c == SLIP_END || transferred_without_flush >= 63) {

Recommendation:

if (((transferred_without_flush > 1) && (c == SLIP_END)) || (transferred_without_flush >= 63)) {

Also i am puzzled about the correct stub loaders to PR/patch/use.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions