From dd3ca90e8a62b9ce062f660d0e93cf0fce5e7ea0 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_tsl4531x/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/periph_eeprom/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 +- 27 files changed, 41 insertions(+), 21 deletions(-) diff --git a/examples/cord_epsim/Makefile b/examples/cord_epsim/Makefile index f40884bde..110dae7f8 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 03828548a..b7dd2ef8e 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 c3cb1b3e0..a3f0b9648 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 9c9293fbf..f1a5f72c2 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 21e3a1f1a..db65bd668 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 5f564681c..c487eac2d 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 d056bae46..50ab28ce1 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 a509648dc..b0d775f67 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_tsl4531x/Makefile b/tests/driver_tsl4531x/Makefile index 487030b62..c9ba61e4d 100644 --- a/tests/driver_tsl4531x/Makefile +++ b/tests/driver_tsl4531x/Makefile @@ -1,5 +1,7 @@ include ../Makefile.tests_common +BOARD_INSUFFICIENT_MEMORY := arduino-duemilanove arduino-uno + USEMODULE += tsl4531x USEMODULE += xtimer diff --git a/tests/driver_xbee/Makefile b/tests/driver_xbee/Makefile index 84d09bfa1..2099972de 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 184b11188..e9065cc36 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 cc66a9e3d..eb62ad179 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 cc66a9e3d..eb62ad179 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 2b8205ec5..7f767162d 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 ae292db10..4583d8b4f 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 4a9dbbdb5..4824580eb 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 bfb6dbf0b..551df56bb 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 54a42556f..489976d1e 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/periph_eeprom/Makefile b/tests/periph_eeprom/Makefile index a34d7a7e2..1771c5bd5 100644 --- a/tests/periph_eeprom/Makefile +++ b/tests/periph_eeprom/Makefile @@ -3,6 +3,8 @@ include ../Makefile.tests_common FEATURES_REQUIRED += periph_eeprom +BOARD_INSUFFICIENT_MEMORY := arduino-duemilanove arduino-uno + USEMODULE += shell USEMODULE += shell_commands # provides reboot command diff --git a/tests/pipe/Makefile b/tests/pipe/Makefile index 10f63e29c..10a4697c3 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 54a42556f..489976d1e 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 549f16276..3a359b349 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 61bc51c2c..e2e53cdc4 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 30365019c..e2ad1f354 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 391995e8f..25a5f776e 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 c32a4e70b..fa58b99b8 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 d2da7702d..5ef90226b 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