[En-Nut-Discussion] Trunk r4506 build errors

Harald Kipp harald.kipp at egnite.de
Tue Aug 28 08:55:44 CEST 2012


Hi Uwe,

On 23.08.2012 22:10, Uwe Bonnes wrote:
> 
>     Harald> stm3210e-eval:
> 
>     Harald> In file included from
>     Harald> ../.././nut/arch/cm3/dev/stm/stm32_spi3.c:169:0:
>     Harald> ../.././nut/arch/cm3/dev/stm/stm32_spi.c: In function
>     Harald> 'Stm32SpiBusSelect':
>     Harald> ../.././nut/arch/cm3/dev/stm/stm32_spi.c:150:9: error:
>     Harald> 'AFIO_MAPR_SPI3_REMAP' undeclared (first use in this function)
> 
> Argh. Why does my GCC not emit a warning for a undefined define. Any help
> for the right settings welcome. Should be  fixed by updating stm32f10x.h now

This one is still not fixed. Here's the related compile command:

arm-none-eabi-gcc -c -I../../stm3210e-eval-cm3-gcc-bld/include  -I../.././nut/include  -DSTM3210E_EVAL -DSTM32F10X_XL -DSTM32_SPI1 -DSTM32_SPI2 -DSTM32_SPI3  -MD -MP -mcpu=cortex-m3 -mthumb -mlittle-endian -D__CORTEX__ -ffunction-sections -fdata-sections -fomit-frame-pointer -mfix-cortex-m3-ldrd -Os -Wall -Wstrict-prototypes -Werror -Wa,-a=cm3/dev/stm/stm32_spi3.lst  -DSTM3210E_EVAL -DSTM32F10X_XL -DSTM32_SPI1 -DSTM32_SPI2 -DSTM32_SPI3 -o cm3/dev/stm/stm32_spi3.o ../.././nut/arch/cm3/dev/stm/stm32_spi3.c

Compiler version is

arm-none-eabi-gcc (GCC) 4.7.1
Copyright (C) 2012 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Regards,

Harald




More information about the En-Nut-Discussion mailing list