Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

boost TX_FIFO_SIZE to 300kb #130

Closed
wants to merge 1 commit into from
Closed

Conversation

guysv
Copy link
Contributor

@guysv guysv commented Aug 25, 2023

I wondered why I can't paste into the micropython demo chunks longer than 512 bytes. then I read the code and figured out the fifo is too small, and when pasting data the mcu green thread is starving, and data starts to leak. boosting this const up allows pasting longer text easily.

cdc drops written packets if fifo is full.. which is easily achieved
when starving the mcu. try pasting >512 bytes into micropython before
this patch.
@urish
Copy link
Contributor

urish commented Aug 27, 2023

Thanks! However, I think it will make more sense, in this case, to dynamically allocate/extend the FIFO based on usage. Otherwise, 300k is just as arbitrary as 512 bytes.

@urish urish closed this Sep 28, 2023
@guysv
Copy link
Contributor Author

guysv commented Sep 28, 2023

yeah sure just shared it in case it bugs other people anyway.

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