[En-Nut-Discussion] NutOs5.1 on STM32 controllers

Holger Mai, GEMAC hmai at gemac-chemnitz.de
Mon Sep 16 11:27:50 CEST 2013


Hello all
i want to run NutOS on an Olimex STM32-E407 with a ST32F407 controller. Thera are some
configurations near this for STM32 controllers, but with all of them it is impossible to compile
the NutOS with Arm GCC. Looks like an error in basic configuration for gcc.

One example for simple CM3 chip configuration usps_f107c.conf:

10:57:16: ----- Running 'make all' -----
10:57:16: make -j3 -C arch
make[1]: Entering directory `D:/ethernut-5.1/nutbld/arch'
arm-none-eabi-gcc -c -I../../nutbld/include  -I../../nut/include  -DUSPS -DSTM32F10X_CL
-MD -MP -mcpu=cortex-m3 -mthumb-interwork -Os -Wall -Wstrict-prototypes -Werror
-Wa,-a=cm3/cmsis/core_cm3.lst  -o cm3/cmsis/core_cm3.o
../../nut/arch/cm3/cmsis/core_cm3.c
10:57:16: arm-none-eabi-gcc -c -I../../nutbld/include  -I../../nut/include  -DUSPS
-DSTM32F10X_CL  -MD -MP -mcpu=cortex-m3 -mthumb-interwork -Os -Wall
-Wstrict-prototypes -Werror -Wa,-a=cm3/cmsis/cortex_init.lst  -o cm3/cmsis/cortex_init.o
../../nut/arch/cm3/cmsis/cortex_init.c
arm-none-eabi-gcc -c -I../../nutbld/include  -I../../nut/include  -DUSPS -DSTM32F10X_CL
-MD -MP -mcpu=cortex-m3 -mthumb-interwork -Os -Wall -Wstrict-prototypes -Werror
-Wa,-a=cm3/os/context.lst  -o cm3/os/context.o ../../nut/arch/cm3/os/context.c
../../nut/arch/cm3/cmsis/cortex_init.c:1:0: error: target CPU does not support ARM mode
../../nut/arch/cm3/cmsis/core_cm3.c:1:0: error: target CPU does not support ARM mode
make[1]: *** [cm3/cmsis/cortex_init.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: *** [cm3/cmsis/core_cm3.o] Error 1
../../nut/arch/cm3/os/context.c:1:0: error: target CPU does not support ARM mode
make[1]: *** [cm3/os/context.o] Error 1
make[1]: Leaving directory `D:/ethernut-5.1/nutbld/arch'
Makefile:4: recipe for target 'all' failed
make: *** [all] Error 2
10:57:16: Build failed


The toolchain is Arm_None_Eabi_gcc  4.6 2012q4 under Windows7, and it works fine with
Eclipse and CooCox Projects for many STM32 Chips.

--

Mit freundlichen Grüßen

Holger Mai

GEMAC - Gesellschaft für Mikroelektronik-
anwendung Chemnitz mbH

Zwickauer Straße 227
D-09116 Chemnitz
Tel. +49 371 3377 0
Fax  +49 371 3377 272

UST-ID: DE140851265
HRB 6443 Chemnitz/Stadt
Geschäftsführer: Dr. Claus Dittrich, Dirk Hübner
http://www.gemac-chemnitz.de


-- 
Ihre Meinung zählt: Unterstützen Sie uns bei der Wahl zum EMS-Dienstleister des Jahres http://www.elektroniknet.de/elektronikfertigung/bestems/

Besuchen Sie uns auf folgenden Messen:
SPS/IPC/Drives 26.-28.11.2013 Halle 6/ Stand 444

Bitte beachten Sie, dass diese Email vertrauliche und / oder rechtlich geschuetzte Informationen enthalten kann. Der Inhalt ist ausschliesslich fuer den bezeichneten Empfaenger bestimmt. Falls Sie nicht der richtige Adressat oder dessen Vertreter sind, setzen Sie sich bitte mit dem Absender in Verbindung. Jede Form der Vervielfaeltigung oder Weitergabe des Inhaltes fehlgeleiteter Emails ist unzulaessig.

Please note that this email might contain confidential an / or legally protected information. The content is exclusively intended for the designated addressee. If you are not the right addressee or his deputy, please get in contact with the sender of this email. Every kind of publication, duplication or transmission of the content of  misdirected emails is inadmissible.

This email was Anti Virus checked by Sophos Security Gateway.


More information about the En-Nut-Discussion mailing list