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

FLASH writes hanging with a timeout in Betaflight when using Chrome on MacOS #439

Open
SteveCEvans opened this issue Jan 6, 2024 · 9 comments
Labels
bug Something isn't working help wanted Extra attention is needed information needed

Comments

@SteveCEvans
Copy link

Attempting to FLASH ESCs using Chrome on Mac 10.15.7 frequently hangs, bricking the ESC. No issues are seen using Edge on Windows 10.

This has been seen when flashing EFM8BB51 based ESCs necessitating recovery using the C2 interface.

See betaflight/betaflight#13277 which adds timeouts to aid to alleviate this.

@SteveCEvans SteveCEvans added the bug Something isn't working label Jan 6, 2024
@stylesuxx
Copy link
Owner

Is this limited to BB51?
When has this first popped up - in regards to MacOS/Chrome version?

I have no Mac myself, so I can't really aid in debugging this one at all.

Could you - by any chance - post a log of a failed flash with the extended debugging setting checked?

@stylesuxx stylesuxx added help wanted Extra attention is needed information needed labels Jan 6, 2024
@SteveCEvans
Copy link
Author

Note that the same FC with an STM32F405 is unaffected by this issue. It appears to be peculiar to the combination of MacOS and the AT32F435.

I'll grab a log.

@SteveCEvans
Copy link
Author

esc-configurator-log.txt

@SteveCEvans
Copy link
Author

I first noticed this issue when flashing an AIO with an AT32F435. I've built a bed of nails fixture to be able to recover this esc, but haven't tried on an another ESC as I've yet to wire one up that I can recover if bricked.

@stylesuxx
Copy link
Owner

Gotcha - very interesting, thank you.
Have you also tried on some kind of Linux flavor, or just Windows and Mac?

Which AIO are you running?

@SteveCEvans
Copy link
Author

https://betafpv.com/collections/brushless-flight-controller/products/f4-1s-12a-aio-brushless-flight-controller-v3-0

@SteveCEvans
Copy link
Author

I have an Ubuntu 20.04 VM and that seems to work OK with Chrome.

@SteveCEvans
Copy link
Author

Both the Windows 10 and Ubuntu 20.04 are running under Parallels on the Mac which has the issue, so it's not a hardware problem.

@SteveCEvans
Copy link
Author

If we can create a stress test that won’t brick the ESC, that would be good. Would it be possible to erase and write an unused sector or two so a failed write won’t spill our day.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed information needed
Projects
None yet
Development

No branches or pull requests

2 participants