[En-Nut-Discussion] devnut_m3n branch
Uwe Bonnes
bon at elektron.ikp.physik.tu-darmstadt.de
Wed Apr 27 13:43:45 CEST 2011
>>>>> "Ulrich" == Ulrich Prinz <uprinz2 at netscape.net> writes:
Ulrich> Hi Uwe, I have no linux toolchain installed so far. I'd planned
Ulrich> this for the next step after I finished the work under Win.
Ulrich,
I am getting lost...
What I did:
Compile various gcc for arm-eabi, e.g. from crosstool-NG.
Link ~/bin/arm-gcc tp the resulting gcc-xxx-eabi-yyy binary
nut/tools/nutconf/nutconfigure -bcomstick -cnut/conf/stm32-comStick.conf \
-lcomstick -marm-gcc create-buildtree
cd comstick
make
make -C arch
make[1]: Entering directory `/opt/spare/bon/ethernut1/ethernut_svn1/branches/devnut_m3n/comstick/arch'
[CC] ../.././nut/arch/cm3/cmsis/ostimer_cortex.c
../.././nut/arch/cm3/cmsis/ostimer_cortex.c:1: error: target CPU does not support ARM mode
make[1]: *** [cm3/cmsis/ostimer_cortex.o] Fehler 1
make[1]: Leaving directory `/opt/spare/bon/ethernut1/ethernut_svn1/branches/devnut_m3n/comstick/arch'
make: *** [all] Fehler 2
Changing
--- nut/Makevars.arm-gcc 2011-04-27 13:38:05.000000000 +0200
+++ Makevars.arm-gcc 2011-04-27 13:38:01.000000000 +0200
@@ -43,6 +43,6 @@
TRGT = arm-none-eabi-
MCFLAGS = -mcpu=$(MCU)
-CFLAGS_MCU = $(MCFLAGS) -mthumb-interwork
+CFLAGS_MCU = $(MCFLAGS) -mthumb
CXXFLAGS_MCU = $(CFLAGS_MCU)
CXXFLAGS_OPT = $(CFLAGS_OPT)
now results in
make -C arch
make[1]: Entering directory `/opt/spare/bon/ethernut1/ethernut_svn1/branches/devnut_m3n/comstick/arch'
[CC] ../.././nut/arch/cm3/cmsis/ostimer_cortex.c
In file included from ../.././nut/include/dev/irqreg.h:160,
from ../.././nut/arch/cm3/cmsis/ostimer_cortex.c:46:
../.././nut/include/arch/arm/irqreg.h:277: warning: #warning "No MCU defined"
../.././nut/arch/cm3/cmsis/ostimer_cortex.c: In function 'NutRegisterTimer':
...
arm-gcc -v
Using built-in specs.
Target: arm-unknown-eabi
Configured with: /opt/spare/bon/crosstool-ng/.build/src/gcc-4.4.6/configure --build=x86_64-build_unknown-linux-gnu --host=x86_64-build_unknown-linux-gnu --target=arm-unknown-eabi --prefix=/home/bon/x-tools/arm-unknown-eabi --with-local-prefix=/home/bon/x-tools/arm-unknown-eabi/arm-unknown-eabi/sysroot --disable-multilib --disable-libmudflap --with-sysroot=/home/bon/x-tools/arm-unknown-eabi/arm-unknown-eabi/sysroot --with-newlib --enable-threads=no --disable-shared --with-pkgversion=crosstool-NG-hg_default at 2410_3954053fb678 --disable-__cxa_atexit --with-host-libstdcxx='-static-libgcc -Wl,-Bstatic,-lstdc++,-Bdynamic -lm' --enable-target-optspace --disable-nls --enable-symvers=gnu --enable-languages=c,c++
Thread model: single
gcc version 4.4.6 (crosstool-NG-hg_default at 2410_3954053fb678)
Any hints what I do wrong?
A also have a Win machine. How do I start STM32 development there?
Thanks
--
Uwe Bonnes bon at elektron.ikp.physik.tu-darmstadt.de
Institut fuer Kernphysik Schlossgartenstrasse 9 64289 Darmstadt
--------- Tel. 06151 162516 -------- Fax. 06151 164321 ----------
More information about the En-Nut-Discussion
mailing list