[En-Nut-Discussion] Trunk r4506 build errors

Uwe Bonnes bon at elektron.ikp.physik.tu-darmstadt.de
Thu Aug 23 22:10:21 CEST 2012


>>>>> "Harald" == Harald Kipp <harald.kipp at egnite.de> writes:

    Harald> Hi developers, After upgrading to r4506, I got the following
    Harald> compile problems.

    Harald> stm32-comStick:

    Harald> ../.././nut/arch/cm3/dev/stm/stm32_can2.c:75:30: error: extra
    Harald> tokens at end of #undef directive [-Werror]
    Harald> ../.././nut/arch/cm3/dev/stm/stm32_can2.c: In function
    Harald> 'Stm32CanHw2Init':
    Harald> ../.././nut/arch/cm3/dev/stm/stm32_can2.c:151:76: error:
    Harald> 'CANBUS_REMAP' undeclared (first use in this function)

Fixed by a valid define...

    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


    Harald> usps_f405g:

    Harald> ../.././nut/arch/cm3/dev/stm/stm32f4_clk.c: In function
    Harald> 'SetSysClock': ../.././nut/arch/cm3/dev/stm/stm32f4_clk.c:382:7:
    Harald> error: missing ')' in expression

Didn't test the case for the F4.  Harald, do you have a script for automated
testing all builds?

    Harald> evk1100-extram, evk1101, evk1104-extram, evk1104-intram,
    Harald> evk1105-extram, evk1105-intram:
...
    Harald> The STM32 errors are new. The AVR32 related problems appeared
    Harald> some time ago.

Hopefully not my fault...

Bye
-- 
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