let's build for h7

This commit is contained in:
rusefillc 2021-02-05 20:16:10 -05:00
parent 08931afb07
commit 06c2e346cb
3 changed files with 23 additions and 1 deletions

View File

@ -70,7 +70,9 @@
/*
* MCU type as defined in the ST header.
*/
#ifndef STM32H743xx
#define STM32H743xx
#endif
/*
* IO pins assignments.

View File

@ -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)

View File

@ -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