Warn when using gcc older than version 6.x on platform nRF52840
@@ -16,6 +16,17 @@ ifeq ("$(CC)","arm-none-eabi-gcc")
endif
endif
+# Warn if using anything older than version 6.x of arm-none-eabi-gcc on nrf52840
+ifeq ("$(TARGET)","nrf52840")
+ ifeq ("$(CC)","arm-none-eabi-gcc")
+ ifeq ($(shell test $(GCC_MAJOR_VERSION) -lt 6; echo $$?),0)
+ $(warning Warning: you're using a version of $(CC) that is known to create broken Contiki-NG executables for the nRF52840 platform.)
+ $(warning Issues reported include the inability to perform any radio communication.)
+ $(warning We recommend to upgrade your toolchain.)
+ endif
+ endif
+endif
+
# Warn if using 4.6.x or older msp430-gcc
ifeq ("$(CC)","msp430-gcc")
ifeq ($(shell test $(GCC_MAJOR_VERSION) -lt 5; echo $$?),0)
