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

Fix MacOS write error caused by unflushed buffer #150

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

kaysievers
Copy link

This replaces the current sleep() with the operating system's flush() call to write out the buffer.

@mike-kfed
Copy link

I can confirm this helps and works on macOS 11.1

@LumitoLuma
Copy link

LumitoLuma commented Jun 25, 2021

It also improves operations' speed in my Debian Testing

@lynxis
Copy link

lynxis commented Nov 8, 2021

Any news on merging this?

@kaysievers just a nitpick you could add a commit summary describing the issues of failed flashing attempts.

lynxis added a commit to lynxis/packages that referenced this pull request Nov 8, 2021
bossa only waited 1ms for the serial device instead calling
tcdrain().
Without this patch bossa is failing to flash a ATSAM3S4 8/10 times.
Patch has been submitted as PR#150 upstream.
shumatech/BOSSA#150

Signed-off-by: Alexander Couzens <[email protected]>
lynxis added a commit to lynxis/packages that referenced this pull request Nov 9, 2021
bossa only waited 1ms for the serial device instead calling
tcdrain().
Without this patch bossa is failing to flash a ATSAM3S4 8/10 times.
Patch has been submitted as PR#150 upstream.
shumatech/BOSSA#150

Signed-off-by: Alexander Couzens <[email protected]>
PolynomialDivision pushed a commit to openwrt/packages that referenced this pull request Nov 9, 2021
bossa only waited 1ms for the serial device instead calling
tcdrain().
Without this patch bossa is failing to flash a ATSAM3S4 8/10 times.
Patch has been submitted as PR#150 upstream.
shumatech/BOSSA#150

Signed-off-by: Alexander Couzens <[email protected]>
1715173329 pushed a commit to immortalwrt/packages that referenced this pull request Nov 9, 2021
bossa only waited 1ms for the serial device instead calling
tcdrain().
Without this patch bossa is failing to flash a ATSAM3S4 8/10 times.
Patch has been submitted as PR#150 upstream.
shumatech/BOSSA#150

Signed-off-by: Alexander Couzens <[email protected]>
Signed-off-by: Tianling Shen <[email protected]>
utoni pushed a commit to utoni/openwrt-packages that referenced this pull request Jan 21, 2022
bossa only waited 1ms for the serial device instead calling
tcdrain().
Without this patch bossa is failing to flash a ATSAM3S4 8/10 times.
Patch has been submitted as PR#150 upstream.
shumatech/BOSSA#150

Signed-off-by: Alexander Couzens <[email protected]>
graysky2 pushed a commit to graysky2/packages that referenced this pull request Feb 3, 2022
bossa only waited 1ms for the serial device instead calling
tcdrain().
Without this patch bossa is failing to flash a ATSAM3S4 8/10 times.
Patch has been submitted as PR#150 upstream.
shumatech/BOSSA#150

Signed-off-by: Alexander Couzens <[email protected]>
@hathach
Copy link

hathach commented Feb 6, 2022

I could confirm that there is macos upload issue with bossac 1.9.1 . We have user report that we have to roll back to bossac 1.8

https://forums.adafruit.com/viewtopic.php?f=19&t=187831
https://forums.adafruit.com/viewtopic.php?f=57&t=187924

graysky2 pushed a commit to graysky2/packages that referenced this pull request Feb 6, 2022
bossa only waited 1ms for the serial device instead calling
tcdrain().
Without this patch bossa is failing to flash a ATSAM3S4 8/10 times.
Patch has been submitted as PR#150 upstream.
shumatech/BOSSA#150

Signed-off-by: Alexander Couzens <[email protected]>
utoni pushed a commit to utoni/openwrt-packages that referenced this pull request May 30, 2022
bossa only waited 1ms for the serial device instead calling
tcdrain().
Without this patch bossa is failing to flash a ATSAM3S4 8/10 times.
Patch has been submitted as PR#150 upstream.
shumatech/BOSSA#150

Signed-off-by: Alexander Couzens <[email protected]>
1582130940 pushed a commit to 1582130940/OpenWrt-Lean-Packages that referenced this pull request Jan 20, 2023
bossa only waited 1ms for the serial device instead calling
tcdrain().
Without this patch bossa is failing to flash a ATSAM3S4 8/10 times.
Patch has been submitted as PR#150 upstream.
shumatech/BOSSA#150

Signed-off-by: Alexander Couzens <[email protected]>
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.

5 participants