From 7d6e28e995cbffaaffb5cbbb9e24bc7bc0f11107 Mon Sep 17 00:00:00 2001 From: Jason Smith Date: Wed, 14 Oct 2020 20:37:05 -0700 Subject: [PATCH 1/3] Fix error during NUCLEO_F767ZI dependency detection --- Marlin/src/pins/stm32f7/pins_NUCLEO_F767ZI.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Marlin/src/pins/stm32f7/pins_NUCLEO_F767ZI.h b/Marlin/src/pins/stm32f7/pins_NUCLEO_F767ZI.h index 5e3d5f4ab538..614c0f417537 100644 --- a/Marlin/src/pins/stm32f7/pins_NUCLEO_F767ZI.h +++ b/Marlin/src/pins/stm32f7/pins_NUCLEO_F767ZI.h @@ -21,7 +21,7 @@ */ #pragma once -#ifndef STM32F767xx +#if !defined(__MARLIN_DEPS__) && !defined(STM32F767xx) #error "Oops! Select an STM32F767 environment" #endif From f2942763ce34b3aa17892b289d4e0bf48938b13c Mon Sep 17 00:00:00 2001 From: Jason Smith Date: Wed, 14 Oct 2020 22:39:22 -0700 Subject: [PATCH 2/3] Add tests --- .github/workflows/test-builds.yml | 1 + buildroot/tests/NUCLEO_F767ZI-tests | 21 +++++++++++++++++++++ 2 files changed, 22 insertions(+) create mode 100644 buildroot/tests/NUCLEO_F767ZI-tests diff --git a/.github/workflows/test-builds.yml b/.github/workflows/test-builds.yml index b2287837998b..f7ba348cc002 100644 --- a/.github/workflows/test-builds.yml +++ b/.github/workflows/test-builds.yml @@ -81,6 +81,7 @@ jobs: - STM32F103RET6_creality - LERDGEX - mks_robin_nano35 + - NUCLEO_F767ZI # Put lengthy tests last diff --git a/buildroot/tests/NUCLEO_F767ZI-tests b/buildroot/tests/NUCLEO_F767ZI-tests new file mode 100644 index 000000000000..05125a453902 --- /dev/null +++ b/buildroot/tests/NUCLEO_F767ZI-tests @@ -0,0 +1,21 @@ +#!/usr/bin/env bash +# +# Build tests for NUCLEO_F767ZI +# + +# exit on first failure +set -e + +# +# Build with the default configurations +# +restore_configs +opt_set MOTHERBOARD BOARD_NUCLEO_F767ZI +opt_set SERIAL_PORT -1 +opt_enable BLTOUCH Z_SAFE_HOMING SPEAKER +opt_set X_DRIVER_TYPE TMC2209 +opt_set Y_DRIVER_TYPE TMC2208 +exec_test $1 $2 "Mixed timer usage" + +# clean up +restore_configs From 3efc1171f7cef0c48bac8240e91327a7b82b3d46 Mon Sep 17 00:00:00 2001 From: Jason Smith Date: Wed, 14 Oct 2020 22:56:16 -0700 Subject: [PATCH 3/3] Use NOT_TARGET --- Marlin/src/pins/stm32f7/pins_NUCLEO_F767ZI.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Marlin/src/pins/stm32f7/pins_NUCLEO_F767ZI.h b/Marlin/src/pins/stm32f7/pins_NUCLEO_F767ZI.h index 614c0f417537..0181e6301ad8 100644 --- a/Marlin/src/pins/stm32f7/pins_NUCLEO_F767ZI.h +++ b/Marlin/src/pins/stm32f7/pins_NUCLEO_F767ZI.h @@ -21,7 +21,7 @@ */ #pragma once -#if !defined(__MARLIN_DEPS__) && !defined(STM32F767xx) +#if NOT_TARGET(STM32F767xx) #error "Oops! Select an STM32F767 environment" #endif