From 5bbe73afb57783f2aab4075078a558750b97d562 Mon Sep 17 00:00:00 2001 From: Francisco Acosta Date: Fri, 2 Nov 2018 16:15:30 +0100 Subject: [PATCH] examples, tests: add memory insufficient arduino boards The unification of a bigger stack for the atmega platforms makes some boards to not have enough memory to provide the big stack plus the application code. It is possible though, to override the stack size to a smaller amount if running the test is necessary. --- examples/cord_epsim/Makefile | 2 +- examples/ipc_pingpong/Makefile | 3 ++- tests/bench_sizeof_coretypes/Makefile | 2 ++ tests/driver_bmx055/Makefile | 2 ++ tests/driver_enc28j60/Makefile | 2 +- tests/driver_mpu9150/Makefile | 2 ++ tests/driver_nvram_spi/Makefile | 2 ++ tests/driver_pir/Makefile | 2 +- tests/driver_xbee/Makefile | 2 +- tests/emb6/Makefile | 4 ++-- tests/evtimer_msg/Makefile | 3 ++- tests/evtimer_underflow/Makefile | 3 ++- tests/gnrc_ipv6_nib/Makefile | 4 ++-- tests/gnrc_sock_udp/Makefile | 3 ++- tests/irq/Makefile | 2 +- tests/isr_yield_higher/Makefile | 2 +- tests/msg_send_receive/Makefile | 2 +- tests/pipe/Makefile | 2 +- tests/sched_testing/Makefile | 2 +- tests/struct_tm_utility/Makefile | 2 ++ tests/thread_exit/Makefile | 2 +- tests/thread_flags/Makefile | 2 +- tests/thread_race/Makefile | 2 ++ tests/xtimer_hang/Makefile | 2 +- tests/xtimer_msg/Makefile | 2 +- 25 files changed, 37 insertions(+), 21 deletions(-) diff --git a/examples/cord_epsim/Makefile b/examples/cord_epsim/Makefile index f40884bdeb62..110dae7f864a 100644 --- a/examples/cord_epsim/Makefile +++ b/examples/cord_epsim/Makefile @@ -11,7 +11,7 @@ BOARD_INSUFFICIENT_MEMORY := arduino-duemilanove arduino-mega2560 arduino-uno \ chronos hifive1 msb-430 msb-430h nucleo-f030r8 \ nucleo-l053r8 nucleo-f031k6 nucleo-f042k6 \ nucleo-f303k8 nucleo-f334r8 nucleo-l031k6 \ - stm32f0discovery telosb waspmote-pro \ + mega-xplained stm32f0discovery telosb waspmote-pro \ wsn430-v1_3b wsn430-v1_4 z1 # Enable GNRC networking diff --git a/examples/ipc_pingpong/Makefile b/examples/ipc_pingpong/Makefile index 03828548a90b..b7dd2ef8e0cf 100644 --- a/examples/ipc_pingpong/Makefile +++ b/examples/ipc_pingpong/Makefile @@ -4,7 +4,8 @@ APPLICATION = ipc_pingpong # If no BOARD is found in the environment, use this default: BOARD ?= native -BOARD_INSUFFICIENT_MEMORY := nucleo-f031k6 +BOARD_INSUFFICIENT_MEMORY := arduino-duemilanove arduino-uno nucleo-f031k6 \ + # This has to be the absolute path to the RIOT base directory: RIOTBASE ?= $(CURDIR)/../.. diff --git a/tests/bench_sizeof_coretypes/Makefile b/tests/bench_sizeof_coretypes/Makefile index c3cb1b3e017b..a3f0b96487ad 100644 --- a/tests/bench_sizeof_coretypes/Makefile +++ b/tests/bench_sizeof_coretypes/Makefile @@ -1,5 +1,7 @@ include ../Makefile.tests_common +BOARD_INSUFFICIENT_MEMORY := arduino-duemilanove arduino-uno + # Modules that will have an impact on the size of the TCB (thread_t): # # disabled by default, enable on demand: diff --git a/tests/driver_bmx055/Makefile b/tests/driver_bmx055/Makefile index 9c9293fbfd51..f1a5f72c27af 100644 --- a/tests/driver_bmx055/Makefile +++ b/tests/driver_bmx055/Makefile @@ -1,5 +1,7 @@ include ../Makefile.tests_common +BOARD_INSUFFICIENT_MEMORY := arduino-duemilanove arduino-uno + # include and auto-initialize all available sensors USEMODULE += saul_default # include driver for bmx055 sensor diff --git a/tests/driver_enc28j60/Makefile b/tests/driver_enc28j60/Makefile index 21e3a1f1ac0b..db65bd668dfe 100644 --- a/tests/driver_enc28j60/Makefile +++ b/tests/driver_enc28j60/Makefile @@ -3,7 +3,7 @@ include ../Makefile.tests_common BOARD_INSUFFICIENT_MEMORY := arduino-duemilanove arduino-mega2560 arduino-uno \ msb-430 msb-430h nucleo-f334r8 nucleo-l053r8 \ nucleo-f031k6 nucleo-f042k6 nucleo-f303k8 \ - nucleo-l031k6 stm32f0discovery telosb \ + nucleo-l031k6 mega-xplained stm32f0discovery telosb \ waspmote-pro wsn430-v1_3b wsn430-v1_4 z1 USEMODULE += auto_init_gnrc_netif diff --git a/tests/driver_mpu9150/Makefile b/tests/driver_mpu9150/Makefile index 5f564681c8cb..c487eac2d8ba 100644 --- a/tests/driver_mpu9150/Makefile +++ b/tests/driver_mpu9150/Makefile @@ -1,5 +1,7 @@ include ../Makefile.tests_common +BOARD_INSUFFICIENT_MEMORY := arduino-duemilanove arduino-uno + USEMODULE += mpu9150 USEMODULE += xtimer diff --git a/tests/driver_nvram_spi/Makefile b/tests/driver_nvram_spi/Makefile index d056bae463cc..50ab28ce16ac 100644 --- a/tests/driver_nvram_spi/Makefile +++ b/tests/driver_nvram_spi/Makefile @@ -1,5 +1,7 @@ include ../Makefile.tests_common +BOARD_INSUFFICIENT_MEMORY := arduino-duemilanove arduino-uno + USEMODULE += nvram_spi USEMODULE += xtimer diff --git a/tests/driver_pir/Makefile b/tests/driver_pir/Makefile index a509648dccac..b0d775f67b31 100644 --- a/tests/driver_pir/Makefile +++ b/tests/driver_pir/Makefile @@ -1,6 +1,6 @@ include ../Makefile.tests_common -BOARD_INSUFFICIENT_MEMORY := nucleo-f031k6 +BOARD_INSUFFICIENT_MEMORY := arduino-duemilanove arduino-uno nucleo-f031k6 USEMODULE += pir diff --git a/tests/driver_xbee/Makefile b/tests/driver_xbee/Makefile index 84d09bfa1bc0..2099972dea93 100644 --- a/tests/driver_xbee/Makefile +++ b/tests/driver_xbee/Makefile @@ -2,7 +2,7 @@ include ../Makefile.tests_common BOARD_INSUFFICIENT_MEMORY := arduino-duemilanove arduino-uno nucleo-f031k6 \ nucleo-f042k6 nucleo-f030r8 nucleo-f334r8 \ - stm32f0discovery + stm32f0discovery waspmote-pro USEMODULE += xbee USEMODULE += gnrc_txtsnd diff --git a/tests/emb6/Makefile b/tests/emb6/Makefile index 184b11188c03..e9065cc367d0 100644 --- a/tests/emb6/Makefile +++ b/tests/emb6/Makefile @@ -6,10 +6,10 @@ include ../Makefile.tests_common BOARD_BLACKLIST := msb-430 msb-430h pic32-clicker pic32-wifire \ telosb wsn430-v1_3b wsn430-v1_4 z1 -BOARD_INSUFFICIENT_MEMORY := arduino-duemilanove arduino-uno \ +BOARD_INSUFFICIENT_MEMORY := arduino-duemilanove arduino-mega2560 arduino-uno \ msb-430 msb-430h nucleo-l031k6 nucleo-f031k6 \ nucleo-f042k6 nucleo-l053r8 stm32f0discovery \ - telosb wsn430-v1_3b wsn430-v1_4 z1 + telosb waspmote-pro wsn430-v1_3b wsn430-v1_4 z1 USEPKG += emb6 diff --git a/tests/evtimer_msg/Makefile b/tests/evtimer_msg/Makefile index cc66a9e3d9ed..eb62ad17957a 100644 --- a/tests/evtimer_msg/Makefile +++ b/tests/evtimer_msg/Makefile @@ -1,6 +1,7 @@ include ../Makefile.tests_common -BOARD_INSUFFICIENT_MEMORY := nucleo-f031k6 nucleo-f042k6 +BOARD_INSUFFICIENT_MEMORY := arduino-duemilanove arduino-uno nucleo-f031k6 \ + nucleo-f042k6 USEMODULE += evtimer diff --git a/tests/evtimer_underflow/Makefile b/tests/evtimer_underflow/Makefile index cc66a9e3d9ed..eb62ad17957a 100644 --- a/tests/evtimer_underflow/Makefile +++ b/tests/evtimer_underflow/Makefile @@ -1,6 +1,7 @@ include ../Makefile.tests_common -BOARD_INSUFFICIENT_MEMORY := nucleo-f031k6 nucleo-f042k6 +BOARD_INSUFFICIENT_MEMORY := arduino-duemilanove arduino-uno nucleo-f031k6 \ + nucleo-f042k6 USEMODULE += evtimer diff --git a/tests/gnrc_ipv6_nib/Makefile b/tests/gnrc_ipv6_nib/Makefile index 2b8205ec5d15..7f767162da41 100644 --- a/tests/gnrc_ipv6_nib/Makefile +++ b/tests/gnrc_ipv6_nib/Makefile @@ -1,8 +1,8 @@ include ../Makefile.tests_common -BOARD_INSUFFICIENT_MEMORY := arduino-duemilanove arduino-uno \ +BOARD_INSUFFICIENT_MEMORY := arduino-duemilanove arduino-mega2560 arduino-uno \ chronos nucleo-f031k6 nucleo-f042k6 nucleo-l031k6 \ - telosb wsn430-v1_3b wsn430-v1_4 + telosb waspmote-pro wsn430-v1_3b wsn430-v1_4 USEMODULE += gnrc_ipv6 USEMODULE += gnrc_ipv6_nib diff --git a/tests/gnrc_sock_udp/Makefile b/tests/gnrc_sock_udp/Makefile index ae292db100d3..4583d8b4f5bc 100644 --- a/tests/gnrc_sock_udp/Makefile +++ b/tests/gnrc_sock_udp/Makefile @@ -1,7 +1,8 @@ include ../Makefile.tests_common BOARD_INSUFFICIENT_MEMORY := arduino-duemilanove arduino-uno \ - chronos nucleo-f031k6 nucleo-f042k6 nucleo-l031k6 + chronos nucleo-f031k6 nucleo-f042k6 nucleo-l031k6 \ + waspmote-pro USEMODULE += gnrc_sock_check_reuse USEMODULE += gnrc_sock_udp diff --git a/tests/irq/Makefile b/tests/irq/Makefile index 4a9dbbdb5d8d..4824580eb065 100644 --- a/tests/irq/Makefile +++ b/tests/irq/Makefile @@ -1,6 +1,6 @@ include ../Makefile.tests_common -BOARD_INSUFFICIENT_MEMORY := nucleo-f031k6 +BOARD_INSUFFICIENT_MEMORY := arduino-duemilanove arduino-uno nucleo-f031k6 USEMODULE += auto_init USEMODULE += xtimer diff --git a/tests/isr_yield_higher/Makefile b/tests/isr_yield_higher/Makefile index bfb6dbf0b1af..551df56bb799 100644 --- a/tests/isr_yield_higher/Makefile +++ b/tests/isr_yield_higher/Makefile @@ -1,7 +1,7 @@ APPLICATION = isr_yield_higher include ../Makefile.tests_common -BOARD_INSUFFICIENT_MEMORY := nucleo-f031k6 +BOARD_INSUFFICIENT_MEMORY := arduino-duemilanove arduino-uno nucleo-f031k6 USEMODULE += xtimer diff --git a/tests/msg_send_receive/Makefile b/tests/msg_send_receive/Makefile index 54a42556f80c..489976d1e82b 100644 --- a/tests/msg_send_receive/Makefile +++ b/tests/msg_send_receive/Makefile @@ -1,6 +1,6 @@ include ../Makefile.tests_common -BOARD_INSUFFICIENT_MEMORY := nucleo-f031k6 +BOARD_INSUFFICIENT_MEMORY := arduino-duemilanove arduino-uno nucleo-f031k6 TEST_ON_CI_WHITELIST += all diff --git a/tests/pipe/Makefile b/tests/pipe/Makefile index 10f63e29cd64..10a4697c3956 100644 --- a/tests/pipe/Makefile +++ b/tests/pipe/Makefile @@ -2,7 +2,7 @@ include ../Makefile.tests_common #malloc.h not found BOARD_BLACKLIST := jiminy-mega256rfr2 mega-xplained -BOARD_INSUFFICIENT_MEMORY := nucleo-f031k6 +BOARD_INSUFFICIENT_MEMORY := arduino-duemilanove arduino-uno nucleo-f031k6 USEMODULE += pipe diff --git a/tests/sched_testing/Makefile b/tests/sched_testing/Makefile index 54a42556f80c..489976d1e82b 100644 --- a/tests/sched_testing/Makefile +++ b/tests/sched_testing/Makefile @@ -1,6 +1,6 @@ include ../Makefile.tests_common -BOARD_INSUFFICIENT_MEMORY := nucleo-f031k6 +BOARD_INSUFFICIENT_MEMORY := arduino-duemilanove arduino-uno nucleo-f031k6 TEST_ON_CI_WHITELIST += all diff --git a/tests/struct_tm_utility/Makefile b/tests/struct_tm_utility/Makefile index 549f16276473..3a359b349190 100644 --- a/tests/struct_tm_utility/Makefile +++ b/tests/struct_tm_utility/Makefile @@ -2,6 +2,8 @@ include ../Makefile.tests_common DISABLE_MODULE += auto_init +BOARD_INSUFFICIENT_MEMORY := arduino-duemilanove arduino-uno + USEMODULE += shell USEMODULE += timex diff --git a/tests/thread_exit/Makefile b/tests/thread_exit/Makefile index 61bc51c2c4b2..e2e53cdc4480 100644 --- a/tests/thread_exit/Makefile +++ b/tests/thread_exit/Makefile @@ -1,6 +1,6 @@ include ../Makefile.tests_common -BOARD_INSUFFICIENT_MEMORY := nucleo-f031k6 +BOARD_INSUFFICIENT_MEMORY := arduino-duemilanove arduino-uno nucleo-f031k6 DISABLE_MODULE += auto_init diff --git a/tests/thread_flags/Makefile b/tests/thread_flags/Makefile index 30365019ccec..e2ad1f354512 100644 --- a/tests/thread_flags/Makefile +++ b/tests/thread_flags/Makefile @@ -1,6 +1,6 @@ include ../Makefile.tests_common -BOARD_INSUFFICIENT_MEMORY := nucleo-f031k6 +BOARD_INSUFFICIENT_MEMORY := arduino-duemilanove arduino-uno nucleo-f031k6 USEMODULE += core_thread_flags USEMODULE += xtimer diff --git a/tests/thread_race/Makefile b/tests/thread_race/Makefile index 391995e8f6d1..25a5f776ef80 100644 --- a/tests/thread_race/Makefile +++ b/tests/thread_race/Makefile @@ -2,6 +2,8 @@ include ../Makefile.tests_common DISABLE_MODULE += auto_init +BOARD_INSUFFICIENT_MEMORY := arduino-duemilanove arduino-uno + TEST_ON_CI_WHITELIST += all include $(RIOTBASE)/Makefile.include diff --git a/tests/xtimer_hang/Makefile b/tests/xtimer_hang/Makefile index c32a4e70bffe..fa58b99b80d6 100644 --- a/tests/xtimer_hang/Makefile +++ b/tests/xtimer_hang/Makefile @@ -1,6 +1,6 @@ include ../Makefile.tests_common -BOARD_INSUFFICIENT_MEMORY := nucleo-f031k6 +BOARD_INSUFFICIENT_MEMORY := arduino-duemilanove arduino-uno nucleo-f031k6 USEMODULE += xtimer diff --git a/tests/xtimer_msg/Makefile b/tests/xtimer_msg/Makefile index d2da7702d454..5ef90226bffd 100644 --- a/tests/xtimer_msg/Makefile +++ b/tests/xtimer_msg/Makefile @@ -1,6 +1,6 @@ include ../Makefile.tests_common -BOARD_INSUFFICIENT_MEMORY := nucleo-f031k6 +BOARD_INSUFFICIENT_MEMORY := arduino-duemilanove arduino-uno nucleo-f031k6 USEMODULE += xtimer