[En-Nut-Discussion] devnut_m3n branch

Uwe Bonnes bon at elektron.ikp.physik.tu-darmstadt.de
Tue Apr 26 18:17:39 CEST 2011


Hello,

after I realized that devnut_stm32 is not the branch I want for work on the
STM32F107, I now found time to start withe the devnut_m3n branch. I work on
linux, with other STM32 experiments(maple/leaflabs), I had gcc version 4.4.1
(Sourcery G++ Lite 2010q1-188 ) on my pc.
In branches/devnut_m3n I did:
make distclean
./cleansweap.sh
./reconf
automake --add-missing
./reconf
./configure
make
nut/tools/nutconf/nutconfigure -bcomstick -cnut/conf/stm32-comStick.conf
-lcomstick -marm-gcc create-buildtree

To even start compiling, 
--- ../nut/Makevars.arm-gcc     (Revision 3380)
+++ ../nut/Makevars.arm-gcc     (Arbeitskopie)
@@ -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)

and 
--- ../nut/Makedefs.gcc (Revision 3380)
+++ ../nut/Makedefs.gcc (Arbeitskopie)
@@ -109,7 +109,7 @@
 MCFLAGS = -mmcu=$(MCU)
 
 # C++ compiler options.
-CPFLAGS = $(MCFLAGS) -Os -Wall -Werror -Wstrict-prototypes -Wa,-ahlms=$(<:.c=.lst) $(DEFS)
+CPFLAGS = $(MCFLAGS) -Os -Wall -Wa,-ahlms=$(<:.c=.lst) $(DEFS)
 #CPFLAGS = -g $(MCFLAGS) -O1 -Wall -Wstrict-prototypes -Wa,-ahlms=$(<:.c=.lst) $(DEFS)
 
 # Linker options and flags.

was needed.
However compilation still aborts with
hertz:/spare/bon/ethernut1/ethernut_svn1/branches/devnut_m3n/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/core_cm3.c
  [CC] ../.././nut/arch/cm3/cmsis/cortex_init.c
../.././nut/arch/cm3/cmsis/cortex_init.c: In function 'Cortex_MemInit':
../.././nut/arch/cm3/cmsis/cortex_init.c:122: warning: dereferencing pointer 'src' does break strict-aliasing rules
../.././nut/arch/cm3/cmsis/cortex_init.c:118: note: initialized from here
../.././nut/arch/cm3/cmsis/cortex_init.c:122: note: initialized from here
../.././nut/arch/cm3/cmsis/cortex_init.c:122: warning: dereferencing pointer 'dst' does break strict-aliasing rules
../.././nut/arch/cm3/cmsis/cortex_init.c:120: note: initialized from here
../.././nut/arch/cm3/cmsis/cortex_init.c:122: note: initialized from here
../.././nut/arch/cm3/cmsis/cortex_init.c:129: warning: dereferencing pointer 'dst' does break strict-aliasing rules
../.././nut/arch/cm3/cmsis/cortex_init.c:127: note: initialized from here
../.././nut/arch/cm3/cmsis/cortex_init.c:129: note: initialized from here
  [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':
../.././nut/arch/cm3/cmsis/ostimer_cortex.c:118: warning: implicit declaration of function 'SysCtlClockGet'
../.././nut/arch/cm3/cmsis/ostimer_cortex.c: In function 'NutArchClockGet':
../.././nut/arch/cm3/cmsis/ostimer_cortex.c:132: error: 'RCC_ClocksTypeDef' undeclared (first use in this function)

Now I try to compiled arm-gcc from source as explained in enswm28e.pdf...
-- 
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