mcauser / BLACK_F407VE

MicroPython board definition for the MCUDev Black STM32F407VET6 board
MIT License
122 stars 47 forks source link

error when processing make BOARD=BLACK_F407VE #13

Open pierrebak opened 3 years ago

pierrebak commented 3 years ago

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.

LouDnl commented 3 years ago

Same error here

LouDnl commented 3 years ago

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
jeback1 commented 3 years ago

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