build micropython for STM32F7DISC on windows
Re: build micropython for STM32F7DISC on windows
building micropython for STM32F7DISC and Nucleo_F767 gives this error message. Please help.....
arm-none-eabi-gcc: error: unrecognized argument in option '-mtune=cortex-m7'
arm-none-eabi-gcc: note: valid arguments to '-mtune=' are: arm1020e arm1020t arm1022e arm1026ej-s arm10e arm10tdmi arm1136j-s arm1136jf-s arm1156t2-s arm1156t2f-s arm1176jz-s arm1176jzf-s arm2 arm250 arm3 arm6 arm60 arm600 arm610 arm620 arm7 arm70 arm700 arm700i arm710 arm7100 arm710c arm710t arm720 arm720t arm740t arm7500 arm7500fe arm7d arm7di arm7dm arm7dmi arm7m arm7tdmi arm7tdmi-s arm8 arm810 arm9 arm920 arm920t arm922t arm926ej-s arm940t arm946e-s arm966e-s arm968e-s arm9e arm9tdmi cortex-a15 cortex-a5 cortex-a7 cortex-a8 cortex-a9 cortex-m0 cortex-m0plus cortex-m1 cortex-m3 cortex-m4 cortex-r4 cortex-r4f cortex-r5 cortex-r7 ep9312 fa526 fa606te fa626 fa626te fa726te fmp626 generic-armv7-a iwmmxt iwmmxt2 marvell-pj4 mpcore mpcorenovfp native strongarm strongarm110 strongarm1100 strongarm1110 xscale
arm-none-eabi-gcc: error: unrecognized argument in option '-mcpu=cortex-m7'
arm-none-eabi-gcc: note: valid arguments to '-mcpu=' are: arm1020e arm1020t arm1022e arm1026ej-s arm10e arm10tdmi arm1136j-s arm1136jf-s arm1156t2-s arm1156t2f-s arm1176jz-s arm1176jzf-s arm2 arm250 arm3 arm6 arm60 arm600 arm610 arm620 arm7 arm70 arm700 arm700i arm710 arm7100 arm710c arm710t arm720 arm720t arm740t arm7500 arm7500fe arm7d arm7di arm7dm arm7dmi arm7m arm7tdmi arm7tdmi-s arm8 arm810 arm9 arm920 arm920t arm922t arm926ej-s arm940t arm946e-s arm966e-s arm968e-s arm9e arm9tdmi cortex-a15 cortex-a5 cortex-a7 cortex-a8 cortex-a9 cortex-m0 cortex-m0plus cortex-m1 cortex-m3 cortex-m4 cortex-r4 cortex-r4f cortex-r5 cortex-r7 ep9312 fa526 fa606te fa626 fa626te fa726te fmp626 generic-armv7-a iwmmxt iwmmxt2 marvell-pj4 mpcore mpcorenovfp native strongarm strongarm110 strongarm1100 strongarm1110 xscale
../py/mkrules.mk:73: recipe for target 'build-NUCLEO_F767ZI/genhdr/qstr.i.last' failed
make: *** [build-NUCLEO_F767ZI/genhdr/qstr.i.last] Error 1
make: *** Deleting file 'build-NUCLEO_F767ZI/genhdr/qstr.i.last'
arm-none-eabi-gcc: error: unrecognized argument in option '-mtune=cortex-m7'
arm-none-eabi-gcc: note: valid arguments to '-mtune=' are: arm1020e arm1020t arm1022e arm1026ej-s arm10e arm10tdmi arm1136j-s arm1136jf-s arm1156t2-s arm1156t2f-s arm1176jz-s arm1176jzf-s arm2 arm250 arm3 arm6 arm60 arm600 arm610 arm620 arm7 arm70 arm700 arm700i arm710 arm7100 arm710c arm710t arm720 arm720t arm740t arm7500 arm7500fe arm7d arm7di arm7dm arm7dmi arm7m arm7tdmi arm7tdmi-s arm8 arm810 arm9 arm920 arm920t arm922t arm926ej-s arm940t arm946e-s arm966e-s arm968e-s arm9e arm9tdmi cortex-a15 cortex-a5 cortex-a7 cortex-a8 cortex-a9 cortex-m0 cortex-m0plus cortex-m1 cortex-m3 cortex-m4 cortex-r4 cortex-r4f cortex-r5 cortex-r7 ep9312 fa526 fa606te fa626 fa626te fa726te fmp626 generic-armv7-a iwmmxt iwmmxt2 marvell-pj4 mpcore mpcorenovfp native strongarm strongarm110 strongarm1100 strongarm1110 xscale
arm-none-eabi-gcc: error: unrecognized argument in option '-mcpu=cortex-m7'
arm-none-eabi-gcc: note: valid arguments to '-mcpu=' are: arm1020e arm1020t arm1022e arm1026ej-s arm10e arm10tdmi arm1136j-s arm1136jf-s arm1156t2-s arm1156t2f-s arm1176jz-s arm1176jzf-s arm2 arm250 arm3 arm6 arm60 arm600 arm610 arm620 arm7 arm70 arm700 arm700i arm710 arm7100 arm710c arm710t arm720 arm720t arm740t arm7500 arm7500fe arm7d arm7di arm7dm arm7dmi arm7m arm7tdmi arm7tdmi-s arm8 arm810 arm9 arm920 arm920t arm922t arm926ej-s arm940t arm946e-s arm966e-s arm968e-s arm9e arm9tdmi cortex-a15 cortex-a5 cortex-a7 cortex-a8 cortex-a9 cortex-m0 cortex-m0plus cortex-m1 cortex-m3 cortex-m4 cortex-r4 cortex-r4f cortex-r5 cortex-r7 ep9312 fa526 fa606te fa626 fa626te fa726te fmp626 generic-armv7-a iwmmxt iwmmxt2 marvell-pj4 mpcore mpcorenovfp native strongarm strongarm110 strongarm1100 strongarm1110 xscale
../py/mkrules.mk:73: recipe for target 'build-NUCLEO_F767ZI/genhdr/qstr.i.last' failed
make: *** [build-NUCLEO_F767ZI/genhdr/qstr.i.last] Error 1
make: *** Deleting file 'build-NUCLEO_F767ZI/genhdr/qstr.i.last'
Re: build micropython for STM32F7DISC on windows
Are you using the arm toolchain from here: https://launchpad.net/gcc-arm-embedded
It looks like your toolchain is too old to have m7 support.
It looks like your toolchain is too old to have m7 support.
Re: build micropython for STM32F7DISC on windows
I am using Raspberry pi 2 as a linux platform. I am newbee on micropython build. Will you please help me by command codes, how to setup latest version of gcc-arm-none-eabi on my raspberry pi. i am very much interested on micropython. I have tried this command
"sudo add-apt-repository ppa:team-gcc-arm-embedded/ppa"
but it gives me a error message :
pi@raspberrypi:~ $ "sudo add-apt-repository ppa:team-gcc-arm-embedded/ppa"
-bash: sudo add-apt-repository ppa:team-gcc-arm-embedded/ppa: No such file or directory
"sudo add-apt-repository ppa:team-gcc-arm-embedded/ppa"
but it gives me a error message :
pi@raspberrypi:~ $ "sudo add-apt-repository ppa:team-gcc-arm-embedded/ppa"
-bash: sudo add-apt-repository ppa:team-gcc-arm-embedded/ppa: No such file or directory
-
- Posts: 463
- Joined: Wed Apr 08, 2015 5:19 am
Re: build micropython for STM32F7DISC on windows
Because you don't mention otherwise, I'm assuming you're running the Raspian distro on your Raspi. Adding PPAs with add-apt-repository AFAIK only works on Ubuntu-based systems, which Raspian is not.
Anyway, if you're trying to build MicroPython to run on your raspi, you don't need the gcc toolchain for bare bones ARM system, you need the normal GCC and build tools for the Raspi.
If you're trying to build the MicroPython firmware for the Pyboard, install gcc-arm-none-eabi package from the standard Raspian package repository, then follow the instructions in the README in the "stmhal" directory.
Anyway, if you're trying to build MicroPython to run on your raspi, you don't need the gcc toolchain for bare bones ARM system, you need the normal GCC and build tools for the Raspi.
If you're trying to build the MicroPython firmware for the Pyboard, install gcc-arm-none-eabi package from the standard Raspian package repository, then follow the instructions in the README in the "stmhal" directory.
Re: build micropython for STM32F7DISC on windows
I'm not sure where you would find a raspberry pi version of the toolchain which includes M7 support.
Re: build micropython for STM32F7DISC on windows
gcc-arm-none-eabi package from the standard Raspian package repository does not support M7 device. Here is the details
Package: gcc-arm-none-eabi (4.8.4-1+11-1)
GCC cross compiler for ARM Cortex-A/R/M processors
Bare metal compiler for embedded ARM chips using Cortex-M0/M0+/M3/M4, Cortex-R4/R5/R7 and Cortex-A* processors.
need help . what to do??
Package: gcc-arm-none-eabi (4.8.4-1+11-1)
GCC cross compiler for ARM Cortex-A/R/M processors
Bare metal compiler for embedded ARM chips using Cortex-M0/M0+/M3/M4, Cortex-R4/R5/R7 and Cortex-A* processors.
need help . what to do??
-
- Posts: 463
- Joined: Wed Apr 08, 2015 5:19 am
Re: build micropython for STM32F7DISC on windows
Maybe try the approach described here: https://www.raspberrypi.org/forums/view ... 29&t=99127
Or try Arch Linux instead of Raspian?
Or try Arch Linux instead of Raspian?
Re: build micropython for STM32F7DISC on windows
for building STM32F7 Discovery i have used Raspberry Pi 2 and these are the command line codes.
Step1: sudo apt-get install git
Step2: sudo apt-get install gcc-arm-none-eabi
Step3: sudo apt-get install screen
Step4: git clone https://github.com/micropython/micropython.git
Step5: cd micropython/stmhal
Step6: make BOARD=STM32F7DISC
But its works for STM32F4 series only. Not works for STM32F7 series. Experts of micropython please help me on for building micropython for STM32F7DISC or NUCLEO_F767ZI.
Step1: sudo apt-get install git
Step2: sudo apt-get install gcc-arm-none-eabi
Step3: sudo apt-get install screen
Step4: git clone https://github.com/micropython/micropython.git
Step5: cd micropython/stmhal
Step6: make BOARD=STM32F7DISC
But its works for STM32F4 series only. Not works for STM32F7 series. Experts of micropython please help me on for building micropython for STM32F7DISC or NUCLEO_F767ZI.
Re: build micropython for STM32F7DISC on windows
You'll need to find a distro for the Raspberry Pi that has an arm cross compiler that supports M7, or build one yourself. I've never built a toolchain on the raspberry pi, so I don't know if it even has enough RAM to support that.
Those are basically your only options if you want to use the Raspberry Pi as a host.
Those are basically your only options if you want to use the Raspberry Pi as a host.
Re: build micropython for STM32F7DISC on windows
The title of this thread says "on windows". The launchpad site includes a gcc toolchain for windows which includes M7 support