diff options
author | Fabien Poussin <fabien.poussin@gmail.com> | 2018-03-15 16:35:44 +0100 |
---|---|---|
committer | Fabien Poussin <fabien.poussin@gmail.com> | 2018-03-15 16:35:44 +0100 |
commit | 272ee7c0d3e5ed4210e81ce03d2ce9a092301ad6 (patch) | |
tree | ec5480af26ebd5259b1d9bf9b2745a5cff6a6d26 /testhal/STM32 | |
parent | 59fa3224891a22b71c883b0f154577378fe6d268 (diff) | |
download | ChibiOS-Contrib-272ee7c0d3e5ed4210e81ce03d2ce9a092301ad6.tar.gz ChibiOS-Contrib-272ee7c0d3e5ed4210e81ce03d2ce9a092301ad6.tar.bz2 ChibiOS-Contrib-272ee7c0d3e5ed4210e81ce03d2ce9a092301ad6.zip |
Fixed STM32F7 MSD testhal
Diffstat (limited to 'testhal/STM32')
-rw-r--r-- | testhal/STM32/STM32F7xx/USB_MSD/Makefile | 10 | ||||
-rw-r--r-- | testhal/STM32/STM32F7xx/USB_MSD/halconf.h | 4 | ||||
-rw-r--r-- | testhal/STM32/STM32F7xx/USB_MSD/mcuconf.h | 2 |
3 files changed, 8 insertions, 8 deletions
diff --git a/testhal/STM32/STM32F7xx/USB_MSD/Makefile b/testhal/STM32/STM32F7xx/USB_MSD/Makefile index 4564c51..10ec19f 100644 --- a/testhal/STM32/STM32F7xx/USB_MSD/Makefile +++ b/testhal/STM32/STM32F7xx/USB_MSD/Makefile @@ -5,7 +5,7 @@ # Compiler options here. ifeq ($(USE_OPT),) - USE_OPT = -O0 -ggdb -fomit-frame-pointer -falign-functions=16 + USE_OPT = -Os -ggdb -fomit-frame-pointer -falign-functions=16 endif # C specific options here (added to USE_OPT). @@ -30,7 +30,7 @@ endif # Enable this if you want link time optimizations (LTO) ifeq ($(USE_LTO),) - USE_LTO = yes + USE_LTO = no endif # If enabled, this option allows to compile the application in THUMB mode. @@ -91,14 +91,14 @@ endif PROJECT = ch # Imported source files and paths -CHIBIOS = ../../../../../ChibiOS +CHIBIOS = ../../../../../ChibiOS-RT CHIBIOS_CONTRIB = $(CHIBIOS)/../ChibiOS-Contrib # Startup files. include $(CHIBIOS)/os/common/startup/ARMCMx/compilers/GCC/mk/startup_stm32f7xx.mk # HAL-OSAL files (optional). include $(CHIBIOS_CONTRIB)/os/hal/hal.mk include $(CHIBIOS_CONTRIB)/os/hal/ports/STM32/STM32F7xx/platform.mk -include $(CHIBIOS)/os/hal/boards/ST_STM32F746G_DISCOVERY/board.mk +include $(CHIBIOS)/os/hal/boards/ST_NUCLEO144_F767ZI/board.mk include $(CHIBIOS)/os/hal/osal/rt/osal.mk # RTOS files (optional). include $(CHIBIOS)/os/rt/rt.mk @@ -111,7 +111,7 @@ include $(CHIBIOS)/os/hal/lib/streams/streams.mk include $(CHIBIOS)/os/various/shell/shell.mk # Define linker script file here -LDSCRIPT= $(STARTUPLD)/STM32F746xG.ld +LDSCRIPT= $(STARTUPLD)/STM32F76xxI.ld # C sources that can be compiled in ARM or THUMB mode depending on the global # setting. diff --git a/testhal/STM32/STM32F7xx/USB_MSD/halconf.h b/testhal/STM32/STM32F7xx/USB_MSD/halconf.h index c08c586..f6520bb 100644 --- a/testhal/STM32/STM32F7xx/USB_MSD/halconf.h +++ b/testhal/STM32/STM32F7xx/USB_MSD/halconf.h @@ -174,7 +174,7 @@ * @brief Enables the USB subsystem. */ #if !defined(HAL_USE_USB) || defined(__DOXYGEN__) -#define HAL_USE_USB FALSE +#define HAL_USE_USB TRUE #endif /** @@ -409,7 +409,7 @@ * @note Disabling this option saves both code and data space. */ #if !defined(USB_USE_WAIT) || defined(__DOXYGEN__) -#define USB_USE_WAIT FALSE +#define USB_USE_WAIT TRUE #endif #include "halconf_community.h" diff --git a/testhal/STM32/STM32F7xx/USB_MSD/mcuconf.h b/testhal/STM32/STM32F7xx/USB_MSD/mcuconf.h index ee6970b..8ecea35 100644 --- a/testhal/STM32/STM32F7xx/USB_MSD/mcuconf.h +++ b/testhal/STM32/STM32F7xx/USB_MSD/mcuconf.h @@ -47,7 +47,7 @@ #define STM32_CLOCK48_REQUIRED TRUE #define STM32_SW STM32_SW_PLL #define STM32_PLLSRC STM32_PLLSRC_HSE -#define STM32_PLLM_VALUE 25 +#define STM32_PLLM_VALUE 8 #define STM32_PLLN_VALUE 432 #define STM32_PLLP_VALUE 2 #define STM32_PLLQ_VALUE 9 |