Cross-compile for Cortex-M7 under Windows

Discussion and questions about boards that can run MicroPython but don't have a dedicated forum.
Target audience: Everyone interested in running MicroPython on other hardware.
Post Reply
KonradFoit
Posts: 3
Joined: Mon Feb 15, 2016 10:16 pm

Cross-compile for Cortex-M7 under Windows

Post by KonradFoit » Mon Feb 15, 2016 10:22 pm

Hi!

I've been trying to compile micropython for STM32F7 (STM32F746 discovery to be precise) under Windows, but with no luck.
I have cygwin, gcc-toolchain that supports Cortex-M7, but when i try to compile I get this error:
Create build-STM32F7DISC/genhdr/pins.h
python boards/make-pins.py --board boards/STM32F7DISC/pins.csv --af boards/stm32f746_af.csv --prefix boards/stm32f4xx_prefix.c --hdr build-STM32F7DISC/genhdr/pins.h --qstr build-STM32F7DISC/pins_qstr.h --af-const build-STM32F7DISC/genhdr/pins_af_const.h --af-py build-STM32F7DISC/pins_af.py > build-STM32F7DISC/pins_STM32F7DISC.c
Makefile:337: recipe for target 'build-STM32F7DISC/genhdr/pins.h' failed
/usr/bin/sh: python: command not found
make: *** [build-STM32F7DISC/genhdr/pins/h] Error 127
Any hints what to do?

Best regards,
Konrad

User avatar
dhylands
Posts: 3821
Joined: Mon Jan 06, 2014 6:08 pm
Location: Peachland, BC, Canada
Contact:

Re: Cross-compile for Cortex-M7 under Windows

Post by dhylands » Tue Feb 16, 2016 2:17 am

KonradFoit wrote:

Code: Select all

/usr/bin/sh: python: command not found
Any hints what to do?
Install python?

KonradFoit
Posts: 3
Joined: Mon Feb 15, 2016 10:16 pm

Re: Cross-compile for Cortex-M7 under Windows

Post by KonradFoit » Tue Feb 16, 2016 6:53 am

dhylands wrote:
KonradFoit wrote:

Code: Select all

/usr/bin/sh: python: command not found
Any hints what to do?
Install python?
I have Python 2.7.11

User avatar
dhylands
Posts: 3821
Joined: Mon Jan 06, 2014 6:08 pm
Location: Peachland, BC, Canada
Contact:

Re: Cross-compile for Cortex-M7 under Windows

Post by dhylands » Tue Feb 16, 2016 5:43 pm

But apparently, its not in your path. If you're building using cygwin, then you'll need to install the cygwin version of python.

KonradFoit
Posts: 3
Joined: Mon Feb 15, 2016 10:16 pm

Re: Cross-compile for Cortex-M7 under Windows

Post by KonradFoit » Tue Feb 16, 2016 6:39 pm

OK. Problem solved.
Python added wrong directory to PATH for some strange reasons.

Efried
Posts: 3
Joined: Sun May 11, 2014 3:19 pm

Re: Cross-compile for Cortex-M7 under Windows

Post by Efried » Thu Feb 25, 2016 8:36 am

Is there a ready to code python Cortex M7 solution, including the board (featuring WLAN WPS, SSL...)?
thanks

User avatar
dhylands
Posts: 3821
Joined: Mon Jan 06, 2014 6:08 pm
Location: Peachland, BC, Canada
Contact:

Re: Cross-compile for Cortex-M7 under Windows

Post by dhylands » Thu Feb 25, 2016 5:42 pm

There is the beginnings of a port to the STM32F7DISC (Discovery board), but the ethernet and LCD hasn't been supported yet.

Post Reply