Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

iot-lab_M3: examples/ccn-lite-client fails for iot-lab_M3 #25

Open
miri64 opened this issue May 11, 2014 · 7 comments
Open

iot-lab_M3: examples/ccn-lite-client fails for iot-lab_M3 #25

miri64 opened this issue May 11, 2014 · 7 comments

Comments

@miri64
Copy link
Contributor

miri64 commented May 11, 2014

No description provided.

@thomaseichinger
Copy link
Contributor

There are some Makefile adaptions required to build examples for thirparty_boards:

+ifeq ($(BOARD),iot-lab_M3)
+    export RIOTBOARD =$(RIOTBASE)/../thirdparty_boards
+    export RIOTCPU =$(RIOTBASE)/../thirdparty_cpu
+endif

Did you include something like this?

@miri64
Copy link
Contributor Author

miri64 commented May 13, 2014

Yes, of course. Sorry for not giving any context:

RIOTBOARD=$(readlink -e ../../../thirdparty_boards/) RIOTCPU=$(readlink -e ../../../thirdparty_cpu/) BOARD=iot-lab_M3 make -B clean all

will give:

rm -rf /home/martine/Repositories/RIOT-OS/RIOT/examples/ccn-lite-client/bin/iot-lab_M3/

Compiling.... main.c

Building application ccn-lite-client for iot-lab_M3 w/ MCU stm32f103rey6.
"make" -C /home/martine/Repositories/RIOT-OS/thirdparty_boards/iot-lab_M3
make[1]: Entering directory `/home/martine/Repositories/RIOT-OS/thirdparty_boards/iot-lab_M3'
make -C drivers
make[2]: Entering directory `/home/martine/Repositories/RIOT-OS/thirdparty_boards/iot-lab_M3/drivers'
make[2]: Leaving directory `/home/martine/Repositories/RIOT-OS/thirdparty_boards/iot-lab_M3/drivers'
make[1]: Leaving directory `/home/martine/Repositories/RIOT-OS/thirdparty_boards/iot-lab_M3'
"make" -C /home/martine/Repositories/RIOT-OS/RIOT
make[1]: Entering directory `/home/martine/Repositories/RIOT-OS/RIOT'
mkdir -p /home/martine/Repositories/RIOT-OS/RIOT/examples/ccn-lite-client/bin/iot-lab_M3/
make[2]: Entering directory `/home/martine/Repositories/RIOT-OS/thirdparty_cpu/stm32f103rey6'
make[3]: Entering directory `/home/martine/Repositories/RIOT-OS/thirdparty_cpu/STM32F10x_StdPeriph_Lib_V3.5.0'
make -C Libraries/STM32F10x_StdPeriph_Driver
make[4]: Entering directory `/home/martine/Repositories/RIOT-OS/thirdparty_cpu/STM32F10x_StdPeriph_Lib_V3.5.0/Libraries/STM32F10x_StdPeriph_Driver'
make -C src
make[5]: Entering directory `/home/martine/Repositories/RIOT-OS/thirdparty_cpu/STM32F10x_StdPeriph_Lib_V3.5.0/Libraries/STM32F10x_StdPeriph_Driver/src'
arm-none-eabi-ar -rc /home/martine/Repositories/RIOT-OS/RIOT/examples/ccn-lite-client/bin/iot-lab_M3/stm32f10xstdperi.a /home/martine/Repositories/RIOT-OS/RIOT/examples/ccn-lite-client/bin/iot-lab_M3/misc.o /home/martine/Repositories/RIOT-OS/RIOT/examples/ccn-lite-client/bin/iot-lab_M3/stm32f10x_adc.o /home/martine/Repositories/RIOT-OS/RIOT/examples/ccn-lite-client/bin/iot-lab_M3/stm32f10x_bkp.o /home/martine/Repositories/RIOT-OS/RIOT/examples/ccn-lite-client/bin/iot-lab_M3/stm32f10x_can.o /home/martine/Repositories/RIOT-OS/RIOT/examples/ccn-lite-client/bin/iot-lab_M3/stm32f10x_cec.o /home/martine/Repositories/RIOT-OS/RIOT/examples/ccn-lite-client/bin/iot-lab_M3/stm32f10x_crc.o /home/martine/Repositories/RIOT-OS/RIOT/examples/ccn-lite-client/bin/iot-lab_M3/stm32f10x_dac.o /home/martine/Repositories/RIOT-OS/RIOT/examples/ccn-lite-client/bin/iot-lab_M3/stm32f10x_dbgmcu.o /home/martine/Repositories/RIOT-OS/RIOT/examples/ccn-lite-client/bin/iot-lab_M3/stm32f10x_dma.o /home/martine/Repositories/RIOT-OS/RIOT/examples/ccn-lite-client/bin/iot-lab_M3/stm32f10x_exti.o /home/martine/Repositories/RIOT-OS/RIOT/examples/ccn-lite-client/bin/iot-lab_M3/stm32f10x_flash.o /home/martine/Repositories/RIOT-OS/RIOT/examples/ccn-lite-client/bin/iot-lab_M3/stm32f10x_fsmc.o /home/martine/Repositories/RIOT-OS/RIOT/examples/ccn-lite-client/bin/iot-lab_M3/stm32f10x_gpio.o /home/martine/Repositories/RIOT-OS/RIOT/examples/ccn-lite-client/bin/iot-lab_M3/stm32f10x_i2c.o /home/martine/Repositories/RIOT-OS/RIOT/examples/ccn-lite-client/bin/iot-lab_M3/stm32f10x_iwdg.o /home/martine/Repositories/RIOT-OS/RIOT/examples/ccn-lite-client/bin/iot-lab_M3/stm32f10x_pwr.o /home/martine/Repositories/RIOT-OS/RIOT/examples/ccn-lite-client/bin/iot-lab_M3/stm32f10x_rcc.o /home/martine/Repositories/RIOT-OS/RIOT/examples/ccn-lite-client/bin/iot-lab_M3/stm32f10x_rtc.o /home/martine/Repositories/RIOT-OS/RIOT/examples/ccn-lite-client/bin/iot-lab_M3/stm32f10x_sdio.o /home/martine/Repositories/RIOT-OS/RIOT/examples/ccn-lite-client/bin/iot-lab_M3/stm32f10x_spi.o /home/martine/Repositories/RIOT-OS/RIOT/examples/ccn-lite-client/bin/iot-lab_M3/stm32f10x_tim.o /home/martine/Repositories/RIOT-OS/RIOT/examples/ccn-lite-client/bin/iot-lab_M3/stm32f10x_usart.o /home/martine/Repositories/RIOT-OS/RIOT/examples/ccn-lite-client/bin/iot-lab_M3/stm32f10x_wwdg.o 
make[5]: Leaving directory `/home/martine/Repositories/RIOT-OS/thirdparty_cpu/STM32F10x_StdPeriph_Lib_V3.5.0/Libraries/STM32F10x_StdPeriph_Driver/src'
make[4]: Leaving directory `/home/martine/Repositories/RIOT-OS/thirdparty_cpu/STM32F10x_StdPeriph_Lib_V3.5.0/Libraries/STM32F10x_StdPeriph_Driver'
make[3]: Leaving directory `/home/martine/Repositories/RIOT-OS/thirdparty_cpu/STM32F10x_StdPeriph_Lib_V3.5.0'
make[3]: Entering directory `/home/martine/Repositories/RIOT-OS/thirdparty_cpu/cortex_common'
crash.c: In function 'core_panic':
crash.c:64:1: warning: 'noreturn' function does return [enabled by default]
 }
 ^
make[3]: Leaving directory `/home/martine/Repositories/RIOT-OS/thirdparty_cpu/cortex_common'
make[2]: Leaving directory `/home/martine/Repositories/RIOT-OS/thirdparty_cpu/stm32f103rey6'
make[2]: Entering directory `/home/martine/Repositories/RIOT-OS/RIOT/core'
make[2]: Leaving directory `/home/martine/Repositories/RIOT-OS/RIOT/core'
make[2]: Entering directory `/home/martine/Repositories/RIOT-OS/RIOT/drivers'
make[2]: Leaving directory `/home/martine/Repositories/RIOT-OS/RIOT/drivers'
make[2]: Entering directory `/home/martine/Repositories/RIOT-OS/RIOT/sys'
make[3]: Entering directory `/home/martine/Repositories/RIOT-OS/RIOT/sys/auto_init'
make[3]: Leaving directory `/home/martine/Repositories/RIOT-OS/RIOT/sys/auto_init'
make[3]: Entering directory `/home/martine/Repositories/RIOT-OS/RIOT/sys/lib'
make[3]: Leaving directory `/home/martine/Repositories/RIOT-OS/RIOT/sys/lib'
make[3]: Entering directory `/home/martine/Repositories/RIOT-OS/RIOT/sys/ps'
make[3]: Leaving directory `/home/martine/Repositories/RIOT-OS/RIOT/sys/ps'
make[3]: Entering directory `/home/martine/Repositories/RIOT-OS/RIOT/sys/posix'
make[3]: Leaving directory `/home/martine/Repositories/RIOT-OS/RIOT/sys/posix'
make[3]: Entering directory `/home/martine/Repositories/RIOT-OS/RIOT/sys/shell'
make[3]: Leaving directory `/home/martine/Repositories/RIOT-OS/RIOT/sys/shell'
make[3]: Entering directory `/home/martine/Repositories/RIOT-OS/RIOT/sys/shell/commands'
make[3]: Leaving directory `/home/martine/Repositories/RIOT-OS/RIOT/sys/shell/commands'
make[3]: Entering directory `/home/martine/Repositories/RIOT-OS/RIOT/sys/timex'
make[3]: Leaving directory `/home/martine/Repositories/RIOT-OS/RIOT/sys/timex'
make[3]: Entering directory `/home/martine/Repositories/RIOT-OS/RIOT/sys/uart0'
make[3]: Leaving directory `/home/martine/Repositories/RIOT-OS/RIOT/sys/uart0'
make[3]: Entering directory `/home/martine/Repositories/RIOT-OS/RIOT/sys/vtimer'
make[3]: Leaving directory `/home/martine/Repositories/RIOT-OS/RIOT/sys/vtimer'
make[3]: Entering directory `/home/martine/Repositories/RIOT-OS/RIOT/sys/net/crosslayer/net_help'
make[3]: Leaving directory `/home/martine/Repositories/RIOT-OS/RIOT/sys/net/crosslayer/net_help'
make[3]: Entering directory `/home/martine/Repositories/RIOT-OS/RIOT/sys/crypto/sha256'
make[3]: Leaving directory `/home/martine/Repositories/RIOT-OS/RIOT/sys/crypto/sha256'
make[3]: Entering directory `/home/martine/Repositories/RIOT-OS/RIOT/sys/random'
make[3]: Leaving directory `/home/martine/Repositories/RIOT-OS/RIOT/sys/random'
make[3]: Entering directory `/home/martine/Repositories/RIOT-OS/RIOT/sys/net/ccn_lite'
ccnl-ext-appserver.c: In function 'appserver_create_content':
ccnl-ext-appserver.c:62:10: error: size of array 'buf' is negative
     char buf[CCNL_RIOT_CHUNK_SIZE - 1];
          ^
make[3]: *** [/home/martine/Repositories/RIOT-OS/RIOT/examples/ccn-lite-client/bin/iot-lab_M3/ccn_lite/ccnl-ext-appserver.o] Error 1
make[3]: Leaving directory `/home/martine/Repositories/RIOT-OS/RIOT/sys/net/ccn_lite'
make[2]: *** [all] Error 1
make[2]: Leaving directory `/home/martine/Repositories/RIOT-OS/RIOT/sys'
make[1]: *** [all] Error 1
make[1]: Leaving directory `/home/martine/Repositories/RIOT-OS/RIOT'
make: *** [all] Error 2

@thomaseichinger
Copy link
Contributor

Untested but it seems PAYLOAD_SIZE isn't defined so define CCNL_RIOT_CHUNK_SIZE (PAYLOAD_SIZE - CCNL_HEADER_SIZE) results in a negative value and PAYLOAD_SIZE isn't defined most probably because at86rf231 driver isn't included.

@thomaseichinger
Copy link
Contributor

Well USEMODULE+=at86rf231 solves above for me but it then fails because iot-lab_M3 doesn't have a RTC module implemented yet. I'm waiting for discussion and resulting consensus on RIOT-OS/RIOT#1020 to implement RTC for this board.

@miri64
Copy link
Contributor Author

miri64 commented May 13, 2014

Ah, has iot-lab_M3 a defaulttransceiver defined?

@thomaseichinger
Copy link
Contributor

Not that I knew of.

@miri64
Copy link
Contributor Author

miri64 commented May 14, 2014

#26

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants