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

Windows flashing produces error 0x800701B1 #375

Open
zvecr opened this issue Feb 1, 2024 · 1 comment
Open

Windows flashing produces error 0x800701B1 #375

zvecr opened this issue Feb 1, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@zvecr
Copy link
Contributor

zvecr commented Feb 1, 2024

Operating System

Windows 10

INFO_UF2.TXT

TinyUF2 Bootloader 0.18.1-55-geec497e-dirty - st/cmsis_device_f3 (v2.3.6) st/stm32f3xx_hal_driver (v1.5.6-9-g75cf4fc) tinyusb (0.15.0-566-gf1e006d09)
Model: ST STM32F303 Discovery
Board-ID: STM32F303-Discovery-MB1035D
Date: Jan 31 2024
Flash Size: 0x00040000 bytes

What happened ?

Flashing on both win10 and win11 can generate the error. In all testing, the flash is successful and the board will reboot into the user application while the error dialog is shown.

However from an end user experience, the "unexpected error" dialog causes unnecessary confusion and worry.

Other uf2 based bootloaders I have tested that do not have this issue:

A quick look into the issue, it could be that the reboot is called within the tud_msc_write10_complete_cb callback. By comparison https://github.com/adafruit/uf2-samdx1/blob/master/src/fat.c#L251-L252 and https://github.com/adafruit/uf2-samdx1/blob/master/src/utils.c#L53 seems to suggest a reboot after a delay and from the main loop.

How to reproduce ?

Reset board to bootloader
Drag & drop uf2 user file
Error dialog will popup

Debug Log

No response

Screenshots

win_flash_error

@zvecr zvecr added the bug Something isn't working label Feb 1, 2024
@brentru
Copy link
Member

brentru commented May 24, 2024

@hathach Do you have any idea why this occurs? Is it due to windows ejecting the drive too early?

I saw a user on the WipperSnapper subforum report this as well - https://forums.adafruit.com/viewtopic.php?p=1016725#p1016725

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

No branches or pull requests

2 participants