I recently bought a "clone" micropython board on ebay, thinking that it was a real one. The board claims to be pyboard v1.1, and for all appearances, appears to be identical.
I attempted to run a ledflash.py from the uasyncio git repository. My understanding of the default micropython v1.1 image that uasyncio is flashed to the board is that it contains asynchio support. attempting to import uasyncio fails. I found myself loading different modules from micropython-lib, trying to eliminate the missing pieces.
1. How do I confirm that a given hardware firmware is correct and conforms to a given micropython version?
2. Is there any way to upgrade selectively, or is it better to reflash the board, and hope that the reflash works?
3. As of today, which micropython version is most stable?
thanks!
ebay clone micropython board
-
- Posts: 28
- Joined: Sat Jan 24, 2015 10:34 pm
- Location: vancouver/kelowna/lethbridge
-
- Posts: 969
- Joined: Sat Feb 03, 2018 7:02 pm
Re: ebay clone micropython board
I'd just reflash with the micropython 1.10 firmware.
Kevin Köck
Micropython Smarthome Firmware (with Home-Assistant integration): https://github.com/kevinkk525/pysmartnode
Micropython Smarthome Firmware (with Home-Assistant integration): https://github.com/kevinkk525/pysmartnode
-
- Posts: 28
- Joined: Sat Jan 24, 2015 10:34 pm
- Location: vancouver/kelowna/lethbridge
Re: ebay clone micropython board
i will try it. thanks!
-
- Posts: 28
- Joined: Sat Jan 24, 2015 10:34 pm
- Location: vancouver/kelowna/lethbridge
Re: ebay clone micropython board
ok. I successfully reflashed the fake pyboard as follows:
sudo dfu-util --alt 0 -D pybv11-dp-thread-20190125-v1.10.dfu
dfu-util 0.8
...
>>>import os
>>>os.uname()
>>>(sysname='pyboard', nodename='pyboard', release='1.10.0', version='v1.10 on 2019-01-25', machine='PYBv1.1 with STM32F405RG')
>>>
>>> import uasyncio as asyncio
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: no module named 'uasyncio'
why is this error occurring? If the pyboard has been flashed to the firmware version that supports threading, and is flashed to the version greater than the one that supports uasyncio in the firmware, why am I getting this errror? I had created directories for the non-asyncio version, but I deleted these, and did a reset.
sudo dfu-util --alt 0 -D pybv11-dp-thread-20190125-v1.10.dfu
dfu-util 0.8
...
>>>import os
>>>os.uname()
>>>(sysname='pyboard', nodename='pyboard', release='1.10.0', version='v1.10 on 2019-01-25', machine='PYBv1.1 with STM32F405RG')
>>>
>>> import uasyncio as asyncio
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: no module named 'uasyncio'
why is this error occurring? If the pyboard has been flashed to the firmware version that supports threading, and is flashed to the version greater than the one that supports uasyncio in the firmware, why am I getting this errror? I had created directories for the non-asyncio version, but I deleted these, and did a reset.
-
- Posts: 969
- Joined: Sat Feb 03, 2018 7:02 pm
Re: ebay clone micropython board
Your firmware doesn't contain uasyncio then and you have to upload it yourself. See this for how to install uasyncio:
https://github.com/peterhinch/micropyth ... bare-metal
https://github.com/peterhinch/micropyth ... bare-metal
Kevin Köck
Micropython Smarthome Firmware (with Home-Assistant integration): https://github.com/kevinkk525/pysmartnode
Micropython Smarthome Firmware (with Home-Assistant integration): https://github.com/kevinkk525/pysmartnode
-
- Posts: 28
- Joined: Sat Jan 24, 2015 10:34 pm
- Location: vancouver/kelowna/lethbridge
Re: ebay clone micropython board
I'm dislexic, so I screwed up on the interpretation of the copy. everything works now.
thanks!
thanks!