Skip to content

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 on 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]>
monroewilliams added a commit to monroewilliams/BOSSA that referenced this pull request Jan 1, 2025
@kaysievers kaysievers closed this Aug 11, 2025
@kaysievers kaysievers deleted the main branch August 11, 2025 19:36
@kaysievers kaysievers restored the main branch August 11, 2025 19:55
@kaysievers kaysievers reopened this Aug 11, 2025
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