Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Unable to flash micropython.zip #520

@idealemu

Description

@idealemu

Hi,

I am switching from Infinitime to WaspOS.
I have flashed the bootloader using Gadgetbridge (GB).

Now I am unable to flash micropython.zip.

  1. I have tried to flash it by connecting GB to unsupported device PineDFU, but then when flashing the file I get: "Element could not be installed". I tried following this other issue with a similar problem
    but no renaming of the file worked for me, GB File Installer still refuses to install micropython.zip.

  2. I have tried connection from linux:
    wasp-os-0.4.1>$ ./tools/ota-dfu/dfu.py -z build-pinetime/micropython.zip -a DC:6F:70:63:E9:F7 --legacy
    But get the following output:

wasp-os-0.4.1>$ ./tools/ota-dfu/dfu.py -z build-pinetime/micropython.zip -a DC:6F:70:63:E9:F7 --legacy
Sending file firmware.bin to DC:6F:70:63:E9:F7
Binary imge size: 299440
Binary CRC32: 1549834072
Connecting to DC:6F:70:63:E9:F7
Waiting for Image Size notification
Waiting for INIT DFU notification
Exception at line 166: a bytes-like object is required, not 'str'

Line 166 is ble_dfu.start().

The watch is successfully in OTA update mode, and the bluetooth icon in bottom right goes blue when running the command, but then the error occurs and nothing more happens.

Pinetime was previously running custom Infinitime build with the 1.0.0 bootloader, and is a sealed device.

Any suggestions are welcome !

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions