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

web-flasher and universial-silabs-flasher fail with "Failed to probe running application type" #136

Open
Christian1984 opened this issue Oct 16, 2024 · 1 comment

Comments

@Christian1984
Copy link

Christian1984 commented Oct 16, 2024

Hi! Thanks for your great work on the project!!! I tried to flash my sonoff zigbee 3.0 USB dongle plus e with a new (thread) firmware, particularly ot-rcp-v2.4.4.0-zbdonglee-460800.gbl, which, judging from the webflasher should be the correct one!?

I'm on windows and I tried both the webflasher and the universial-silabs-flasher, in both cases I get an error:

Failed to probe running application type

Webflasher: Stays at 0.0% and dev console shows this
image

universial-silabs-flasher:
image

I also tried running the universial-silabs-flasher with the ----bootloader-reset sonoff option which yields yet another exception:

> universal-silabs-flasher --device COM4 --bootloader-reset sonoff flash --firmware .\ot-rcp-v2.4.4.0-zbdonglee-460800.gbl --allow-cross-flashing
2024-10-16 21:21:34.058 DESKTOP-4C2SUJG universal_silabs_flasher.flash INFO Extracted GBL metadata: NabuCasaMetadata(metadata_version=1, sdk_version='4.4.4', ezsp_version=None, ot_rcp_version='SL-OPENTHREAD/2.4.4.0_GitHub-7074a43e4' (2.4.4.0), cpc_version=None, fw_type=<FirmwareImageType.OT_RCP: 'ot-rcp'>, baudrate=460800)
2024-10-16 21:21:34.059 DESKTOP-4C2SUJG universal_silabs_flasher.flasher INFO Triggering sonoff bootloader
2024-10-16 21:21:34.913 DESKTOP-4C2SUJG universal_silabs_flasher.flasher INFO Probing ApplicationType.GECKO_BOOTLOADER at 115200 baud
2024-10-16 21:21:35.212 DESKTOP-4C2SUJG universal_silabs_flasher.flasher INFO Launched application from bootloader
2024-10-16 21:21:36.232 DESKTOP-4C2SUJG universal_silabs_flasher.flasher INFO Detected bootloader version '1.12.0'
2024-10-16 21:21:36.232 DESKTOP-4C2SUJG universal_silabs_flasher.flasher INFO Probing ApplicationType.SPINEL at 460800 baud
2024-10-16 21:21:40.834 DESKTOP-4C2SUJG universal_silabs_flasher.flasher INFO Probing ApplicationType.CPC at 460800 baud
2024-10-16 21:21:45.281 DESKTOP-4C2SUJG universal_silabs_flasher.flasher INFO Probing ApplicationType.CPC at 115200 baud
2024-10-16 21:21:49.747 DESKTOP-4C2SUJG universal_silabs_flasher.flasher INFO Probing ApplicationType.CPC at 230400 baud
2024-10-16 21:21:54.208 DESKTOP-4C2SUJG universal_silabs_flasher.flasher INFO Probing ApplicationType.EZSP at 115200 baud
2024-10-16 21:21:55.315 DESKTOP-4C2SUJG bellows.ezsp INFO NCP entered failed state. No application handler registered, ignoring...
2024-10-16 21:21:56.594 DESKTOP-4C2SUJG universal_silabs_flasher.flasher INFO Detected ApplicationType.EZSP, version '6.10.3.0 build 297' (6.10.3.0.297) at 115200 baudrate (bootloader baudrate 115200)
2024-10-16 21:21:56.594 DESKTOP-4C2SUJG universal_silabs_flasher.flash INFO Cross-flashing from FirmwareImageType.NCP_UART_HW to FirmwareImageType.OT_RCP
2024-10-16 21:21:57.668 DESKTOP-4C2SUJG bellows.ezsp INFO NCP entered failed state. No application handler registered, ignoring...
ot-rcp-v2.4.4.0-zbdonglee-460800.gbl  [------------------------------------]    0%
  File "C:\Python310\lib\site-packages\universal_silabs_flasher\gecko_bootloader.py", line 71, in probe
    return await self.ebl_info()
  File "C:\Python310\lib\site-packages\universal_silabs_flasher\gecko_bootloader.py", line 81, in ebl_info
    await self._state_machine.wait_for_state(State.IN_MENU)
  File "C:\Python310\lib\site-packages\universal_silabs_flasher\common.py", line 115, in wait_for_state
    return await future
asyncio.exceptions.CancelledError

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Python310\lib\runpy.py", line 196, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "C:\Python310\lib\runpy.py", line 86, in _run_code
    exec(code, run_globals)
  File "C:\Python310\Scripts\universal-silabs-flasher.exe\__main__.py", line 7, in <module>
  File "C:\Python310\lib\site-packages\click\core.py", line 1157, in __call__
    return self.main(*args, **kwargs)
  File "C:\Python310\lib\site-packages\click\core.py", line 1078, in main
    rv = self.invoke(ctx)
  File "C:\Python310\lib\site-packages\click\core.py", line 1688, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "C:\Python310\lib\site-packages\click\core.py", line 1434, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "C:\Python310\lib\site-packages\click\core.py", line 783, in invoke
    return __callback(*args, **kwargs)
  File "C:\Python310\lib\site-packages\click\decorators.py", line 33, in new_func
    return f(get_current_context(), *args, **kwargs)
  File "C:\Python310\lib\site-packages\universal_silabs_flasher\flash.py", line 40, in inner
    return asyncio.run(f(*args, **kwargs))
  File "C:\Python310\lib\asyncio\runners.py", line 44, in run
    return loop.run_until_complete(main)
  File "C:\Python310\lib\asyncio\base_events.py", line 646, in run_until_complete
    return future.result()
  File "C:\Python310\lib\site-packages\universal_silabs_flasher\flash.py", line 423, in flash
    await flasher.flash_firmware(
  File "C:\Python310\lib\site-packages\universal_silabs_flasher\flasher.py", line 295, in flash_firmware
    await gecko.probe()
  File "C:\Python310\lib\site-packages\universal_silabs_flasher\gecko_bootloader.py", line 70, in probe
    async with async_timeout.timeout(PROBE_TIMEOUT):
  File "C:\Python310\lib\site-packages\async_timeout\__init__.py", line 141, in __aexit__
    self._do_exit(exc_type)
  File "C:\Python310\lib\site-packages\async_timeout\__init__.py", line 228, in _do_exit
    raise asyncio.TimeoutError
asyncio.exceptions.TimeoutError

Any thoughts on what I could do to get the thread firmware onto that stick? I also tried flashing with my Mac, but there it won't even let me install the silabs drivers...

@darkxst
Copy link
Owner

darkxst commented Oct 16, 2024

Not sure what is causing this error, however there are known issues with the Windows drivers for cp2102 that havent been resolved yet.

Try with this command, and paste full logs if it still fails:

universal-silabs-flasher -v --device COM4 --bootloader-reset sonoff flash  --probe-method bootloader --firmware .\ot-rcp-v2.4.4.0-zbdonglee-460800.gbl --allow-cross-flashing

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