diff --git a/firmware/config/boards/nucleo_h743/board.h b/firmware/config/boards/nucleo_h743/board.h index 0dcc966702..2d12547f9f 100644 --- a/firmware/config/boards/nucleo_h743/board.h +++ b/firmware/config/boards/nucleo_h743/board.h @@ -70,7 +70,9 @@ /* * MCU type as defined in the ST header. */ +#ifndef STM32H743xx #define STM32H743xx +#endif /* * IO pins assignments. diff --git a/firmware/config/boards/nucleo_h743/board.mk b/firmware/config/boards/nucleo_h743/board.mk index 12660379c0..3510cb1989 100644 --- a/firmware/config/boards/nucleo_h743/board.mk +++ b/firmware/config/boards/nucleo_h743/board.mk @@ -2,7 +2,7 @@ BOARDSRC = $(CHIBIOS)/os/hal/boards/ST_NUCLEO144_H743ZI/board.c # Required include directories -BOARDINC = $(CHIBIOS)/os/hal/boards/ST_NUCLEO144_H743ZI +BOARDINC = $(PROJECT_DIR)/config/boards/nucleo_h743 $(PROJECT_DIR)/config/stm32h7ems # Shared variables ALLCSRC += $(BOARDSRC) diff --git a/firmware/config/boards/nucleo_h743/compile_stm32h743_nucleo.sh b/firmware/config/boards/nucleo_h743/compile_stm32h743_nucleo.sh new file mode 100644 index 0000000000..615e2bddf8 --- /dev/null +++ b/firmware/config/boards/nucleo_h743/compile_stm32h743_nucleo.sh @@ -0,0 +1,20 @@ +#!/bin/bash + +# STM32H743 version of the firmware for Nucleo-H743 board + +SCRIPT_NAME="compile_nucleo_h743.sh" +echo "Entering $SCRIPT_NAME" + +export PROJECT_BOARD=nucleo_h743 +export PROJECT_CPU=ARCH_STM32H7 +export EXTRA_PARAMS="-DDUMMY -DSTM32H743xx \ + -DEFI_INJECTOR_PIN3=GPIO_UNASSIGNED \ + -DFIRMWARE_ID=\\\"nucleoH743\\\" \ + -DEFI_COMMUNICATION_PIN=GPIOB_7 \ + -DSTATUS_LOGGING_BUFFER_SIZE=1400 \ + -DLED_CRITICAL_ERROR_BRAIN_PIN=GPIOB_14 \ + -DEFI_ENABLE_ASSERTS=FALSE \ + -DCH_DBG_ENABLE_CHECKS=FALSE -DCH_DBG_ENABLE_ASSERTS=FALSE -DCH_DBG_ENABLE_STACK_CHECK=FALSE -DCH_DBG_FILL_THREADS=FALSE -DCH_DBG_THREADS_PROFILING=FALSE" +export DEBUG_LEVEL_OPT="-O2" + +bash ../common_make.sh