Page 1 of 1

Build for NUCLEO_F411RE fails

Posted: Fri Jun 21, 2019 6:01 am
by Kenjutsu
Hello everyone,

I am trying to build MicroPython for my NUCLEO_F411RE board. I downloaded the latest master from github and proceded as follows:

1. unzip micropython-master.zip
2. cd mpy-cross
3. make
4. git submodule update --init

I then get the error: fatal: not a git repository (or any of the parent directories): .git

I'm using macOS 10.13.6

Any help will be greatly appreciated ;)

Re: Build for NUCLEO_F411RE fails

Posted: Fri Jun 21, 2019 6:17 am
by jimmo
You'll need to check out the git repository. Rather than using a zip download, try git cloning git@github.com:micropython/micropython.git instead.

Re: Build for NUCLEO_F411RE fails

Posted: Sun Jun 23, 2019 3:22 pm
by Kenjutsu
Thank you, that did it ;)

I did a: git clone https://github.com/micropython/micropython.git

Followed by: make -C mpy-cross

Then: make BOARD=NUCLEO_F411RE deploy-stlink

however, I ran into the same problem described here: https://github.com/micropython/micropython/issues/4455 mpy-cross broken on macOS Mojave #4455

For me, the trick was to: brew uninstall binutils

Now, make BOARD=NUCLEO_F411RE deploy-stlink works 8-)