[En-Nut-Discussion] owibus sample fails to compile for stm32_can

Harald Kipp harald.kipp at egnite.de
Sun Sep 30 13:41:12 CEST 2012


Hello Uwe,

may be you can have a look to

------------------------------------------------------------------------
Target : stm32_can-cm3-gcc-app
Command: SET
PATH=e:\ethernut\nut-trunk\nut\tools\win32;E:\ARMGCCToolchain\bin;e:\apps\bin;%SystemRoot%\system32;%SystemRoot%;%Syste
mRoot%\System32\Wbem;&make clean all install
Error  : 2
------------------------------------------------------------------------
arm-none-eabi-objcopy  -O binary uart.elf uart.bin
make[1]: Leaving directory
`E:/ethernut/ethernut-5.0.5/stm32_can-cm3-gcc-app/uart'
make -C owibus
make[1]: Entering directory
`E:/ethernut/ethernut-5.0.5/stm32_can-cm3-gcc-app/owibus'
arm-none-eabi-gcc -c -I../../stm32_can-cm3-gcc-bld/include
-I../.././nut/include  -DSTM32_CAN -DSTM32F10X_CL -DSTM32_SPI1 -DSTM32_S
PI2 -DSTM32_SPI3  -MD -MP -mcpu=cortex-m3 -mthumb -mlittle-endian
-D__CORTEX__ -ffunction-sections -fdata-sections -fomit-frame-poin
ter -mfix-cortex-m3-ldrd -Os -Wall -Wstrict-prototypes -Wa,-a=owibus.lst
 -DSTM32_CAN -DSTM32F10X_CL -DSTM32_SPI1 -DSTM32_SPI2 -DSTM
32_SPI3 -o owibus.o owibus.c
owibus.c: In function 'main':
owibus.c:121:25: error: subscripted value is neither array nor pointer
nor vector
make[1]: *** [owibus.o] Error 1
make[1]: Leaving directory
`E:/ethernut/ethernut-5.0.5/stm32_can-cm3-gcc-app/owibus'
make: *** [all] Error 2


------------------------------------------------------------------------
Target : stm32_can-cm3-gccdbg-app
Command: SET
PATH=e:\ethernut\nut-trunk\nut\tools\win32;E:\ARMGCCToolchain\bin;e:\apps\bin;%SystemRoot%\system32;%SystemRoot%;%Syste
mRoot%\System32\Wbem;&make clean all install
Error  : 2
------------------------------------------------------------------------
arm-none-eabi-objcopy  -O binary uart.elf uart.bin
make[1]: Leaving directory
`E:/ethernut/ethernut-5.0.5/stm32_can-cm3-gccdbg-app/uart'
make -C owibus
make[1]: Entering directory
`E:/ethernut/ethernut-5.0.5/stm32_can-cm3-gccdbg-app/owibus'
arm-none-eabi-gcc -c -I../../stm32_can-cm3-gccdbg-bld/include
-I../.././nut/include  -DNUT_THREAD_STACK_MULT=3 -DSTM32_CAN -DSTM32F
10X_CL -DSTM32_SPI1 -DSTM32_SPI2 -DSTM32_SPI3  -MD -MP -mcpu=cortex-m3
-mthumb -mlittle-endian -D__CORTEX__ -ffunction-sections -fda
ta-sections -fomit-frame-pointer -mfix-cortex-m3-ldrd -O0 -gdwarf-2
-Wall -Wstrict-prototypes -fverbose-asm -Wa,-ahlms=owibus.lst -D
NUT_THREAD_STACK_MULT=3 -DSTM32_CAN -DSTM32F10X_CL -DSTM32_SPI1
-DSTM32_SPI2 -DSTM32_SPI3 -Wall -Wstrict-prototypes -Wa,-a=owibus.ls
t  -DNUT_THREAD_STACK_MULT=3 -DSTM32_CAN -DSTM32F10X_CL -DSTM32_SPI1
-DSTM32_SPI2 -DSTM32_SPI3 -o owibus.o owibus.c
owibus.c: In function 'main':
owibus.c:121:25: error: subscripted value is neither array nor pointer
nor vector
make[1]: *** [owibus.o] Error 1
make[1]: Leaving directory
`E:/ethernut/ethernut-5.0.5/stm32_can-cm3-gccdbg-app/owibus'
make: *** [all] Error 2

Regards,

Harald



More information about the En-Nut-Discussion mailing list