LisaM wrote: ↑13 Apr 2018, 18:14
I've tried to fix the bugs, but they have change so much on the stm32 port that i lost track.
So, the work-around now is to roll back before they started to change the stm32 port on 31/1:
Code: Select all
git clone https://github.com/micropython/micropython.git micropython-stm32
cd micropython-stm32/
git submodule update --init
git checkout a275cb0f487cd6517760271dc01d369c32600c63
git pull origin pull/3379/head
This builds the firmware.dfu again, without the errors.
However... i now run into the problem:
Code: Select all
>>> import upyeasy
>>> upyeasy.main()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: 'module' object has no attribute 'main'
Pfffff.
Hmm, that's frustrating!
In the meantime I've been having a go. Here's what I did.
I used the commands you gave above, and it built without errors as you found.
Next, I re-built everything using the "new" micopython-stm32,
- I copied the upyeasy src contents into micropython-stm32/ports/stm32/modules/upyeasy
- copied modules contents into ....stm32/modules (had one or two duplicates where I chose the 'upyeasy' version)
- from repo root, did make -C mpy-cross
- in ...ports/stm32 I did
- make MICROPY_PY_WIZNET5K=5500 BOARD=PYBV3 (as I'm using the AliExpress clone board)
- then I connected 3v3 to BOOT0 and did
- sudo make MICROPY_PY_WIZNET5K=5500 BOARD=PYBV3 USE_PYDFU=0 deploy
(all of the above from your excellent document "uPyEasy Building Environment" with a few variations).
Reset and reconnected to USB and was able to connect to REPL
import upyeasy
upyeasy.main()
This worked ok for me, I didn't get the error you have, but it did stop with an error further on, which I'm sure is because I wanted to try it and hadn't connected the W5500
Good luck!
Andrew