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 when flashing a Python script #42

Closed simulsys closed 6 years ago

simulsys commented 6 years ago

Hi,

I am trying to flash a Python script but get the following error:

ushort format requires 0 <= number <= (0x7fff * 2 + 1)

What does this mean, please, and how do I get around it? Many thanks, Andrew.

carlosperate commented 6 years ago

Hi Andrew,

Which command were you using to flash the script? Could you copy/paste the entire console contents when that happens?

simulsys commented 6 years ago

Hi Carlos,

Many thanks for your response. It turned out I was using too large a Python script with non-usable modules, which uflash did not accept. I have amended the code to within the usable constraints. Cheers,