ntoll / uflash

A module and command to easily flash Python onto the BBC's micro:bit device.
http://micropython.org/
MIT License
101 stars 27 forks source link

Error extracting Qtruck-BLE.hex: 'utf-8' codec can't decode byte 0x8a in position 1: invalid start byte #68

Closed Jerry-zirui closed 3 years ago

Jerry-zirui commented 3 years ago

I have got this error on Ubuntu 20.04 LTS and Windows 10 muti-time already when ever time I atemp to run "uflash -e xxx.hex xx.py". Here is one of the HEX file that I trynna to transform to .py. Qtruck-A.zip

ntoll commented 3 years ago

How was the Qtruck hex created..?

Jerry-zirui commented 3 years ago

Microsoft MakeCode

ntoll commented 3 years ago

HI @Jerry-zirui , I'm afraid uflash only supports MicroPython, not Microsoft's recent variation on a Pythonic theme.

If you want to use Python on the micro:bit, may I respectfully suggest you take MicroPython for a spin (see: https://microbit.org/get-started/user-guide/python/). MicroPython is a full implementation of Python 3 and used on many more devices than just the micro:bit (for instance, Lego's Spike platform).

Best of luck..!