From f0bc24c8d620c6cc7029d77383e8bfa5d649df01 Mon Sep 17 00:00:00 2001 From: rusefillc Date: Fri, 27 May 2022 13:18:51 -0400 Subject: [PATCH] first hellen OpenBLT? --- .../hellen121nissan/compile_hellen121nissan.sh | 2 +- .../hellen/hellen121nissan/openblt/oblt_board.mk | 15 +++++++++++++-- 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/firmware/config/boards/hellen/hellen121nissan/compile_hellen121nissan.sh b/firmware/config/boards/hellen/hellen121nissan/compile_hellen121nissan.sh index 6484918d04..346b36f7bf 100644 --- a/firmware/config/boards/hellen/hellen121nissan/compile_hellen121nissan.sh +++ b/firmware/config/boards/hellen/hellen121nissan/compile_hellen121nissan.sh @@ -1,6 +1,6 @@ #!/bin/bash -# export USE_OPENBLT=yes +export USE_OPENBLT=yes cd .. bash ../common_make.sh hellen/hellen121nissan ARCH_STM32F4 diff --git a/firmware/config/boards/hellen/hellen121nissan/openblt/oblt_board.mk b/firmware/config/boards/hellen/hellen121nissan/openblt/oblt_board.mk index 6991edf3c9..935582140a 100644 --- a/firmware/config/boards/hellen/hellen121nissan/openblt/oblt_board.mk +++ b/firmware/config/boards/hellen/hellen121nissan/openblt/oblt_board.mk @@ -8,13 +8,22 @@ PROJ_FILES += $(filter-out $(OPENBLT_BOARD_DIR)/flash_layout.c, $(call rwildcard #|--------------------------------------------------------------------------------------| #| Options for toolchain binaries | #|--------------------------------------------------------------------------------------| -BRDFLAGS = -DSTM32F429xx +ifeq ($(PROJECT_CPU),ARCH_STM32F4) + BRDFLAGS = -DSTM32F429xx +else ifeq ($(PROJECT_CPU),ARCH_STM32F7) + #TODO: check what CPU is on proteus f7 + BRDFLAGS = -DSTM32F767xx +else ifeq ($(PROJECT_CPU),ARCH_STM32H7) + #TODO: check what CPU is on proteus h7 + BRDFLAGS = -DSTM32H743xx +endif #|--------------------------------------------------------------------------------------| #| Specify library files | #|--------------------------------------------------------------------------------------| LIBS = +# We use HSI (internal) on proteus. We define HSE (external) only to have compiler happy. BRDFLAGS += -DHSE_VALUE=8000000 BRDFLAGS += -DSTATUS_LED_PORT=GPIOE -DSTATUS_LED_PIN=GPIO_PIN_3 @@ -25,4 +34,6 @@ BRDFLAGS += -DBOOT_CPU_SYSTEM_SPEED_KHZ=168000 # Select the desired UART peripheral as a zero based index. BRDFLAGS += -DBOOT_COM_RS232_CHANNEL_INDEX=2 # \brief Select the desired CAN peripheral as a zero based index. -BRDFLAGS += -DBOOT_COM_CAN_CHANNEL_INDEX=1 \ No newline at end of file +BRDFLAGS += -DBOOT_COM_CAN_CHANNEL_INDEX=0 + +PROJ_FILES += $(PROJECT_DIR)/hw_layer/openblt/main_internal_osc.c