Open pierrebak opened 3 years ago
Same error here
Solved with first following the guidelines in https://github.com/micropython/micropython
Steps are:
$ sudo apt install gcc-arm-none-eabi
$ git clone https://github.com/micropython/micropython.git
$ cd micropython/mpy-cross
$ make
$ cd ../ports/stm32
$ make submodules
$ cd boards
$ git clone https://github.com/mcauser/BLACK_F407VE.git
$ cd ..
$ make BOARD=BLACK_F407VE
Then flash the board in DFU:
$ make BOARD=BLACK_F407VE deploy
I flashed using the following:
$ sudo apt install dfu-util
$ sudo dfu-util -a 0 -D build-BLACK_F407VE/firmware.dfu
Thanks, LouDnl (and mcauser, of course!) Your solution worked for me as well on a raspberry pi 4. The dfu-util command worked whereas 'make BOARD=BLACK_F407VE deploy' failed with:
Writing build-BLACK_F407VE/firmware.dfu to the board
Traceback (most recent call last):
File "../../tools/pydfu.py", line 22, in <module>
import usb.core
ModuleNotFoundError: No module named 'usb'
make: *** [Makefile:634: deploy] Error 1
I have this error while trying to establish the definition:
make: *** no rule to make the target « lib/mbedtls/library/aes.c », necessary forre pour « build-BLACK_F407VE/genhdr/qstr.i.last ». Stop.