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

Firmware flashing extremely slow #24

Closed
okastl opened this issue Dec 19, 2023 · 1 comment
Closed

Firmware flashing extremely slow #24

okastl opened this issue Dec 19, 2023 · 1 comment

Comments

@okastl
Copy link

okastl commented Dec 19, 2023

At least on my Windows 10 machine firmware flashing is extremely slow.
This is caused by Nagle algorithm, because of writing some bytes, waiting for ack, ....
As you have cc2538-bsl.py local anyway, you can add these lines to make flash upload really fast.
I tested it by running cc2538-bsl.py from command line:

import socket

...

# in function def open()
        self.sp.open()
        if hasattr(self.sp, '_socket'):
            self.sp._socket.setsockopt(socket.IPPROTO_TCP, socket.TCP_NODELAY, 1)

Thank you!

xyzroe added a commit that referenced this issue Dec 19, 2023
- Increase flashing speed (issue #24) thanks to @okastl 🎉
@xyzroe
Copy link
Owner

xyzroe commented Dec 19, 2023

@okastl many thanks!

look at v0.4.2

@xyzroe xyzroe closed this as completed Dec 19, 2023
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

No branches or pull requests

2 participants