Skip to content

Commit bc576e7

Browse files
committed
Make it work.
1 parent 6a1dc25 commit bc576e7

File tree

4 files changed

+4
-2
lines changed

4 files changed

+4
-2
lines changed

hw/bsp/stm32u5/boards/stm32u545nucleo/board.mk

+1
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,6 @@ LD_FILE = ${FAMILY_PATH}/linker/STM32U545xx_FLASH.ld
66

77
SRC_S += $(ST_CMSIS)/Source/Templates/gcc/startup_stm32u545xx.s
88

9+
MCU_VARIANT = stm32u545xx
910
# For flash-jlink target
1011
JLINK_DEVICE = stm32u545re

hw/bsp/stm32u5/boards/stm32u575eval/board.mk

+1
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,6 @@ LD_FILE = ${FAMILY_PATH}/linker/STM32U575xx_FLASH.ld
66

77
SRC_S += $(ST_CMSIS)/Source/Templates/gcc/startup_stm32u575xx.s
88

9+
MCU_VARIANT = stm32u575xx
910
# For flash-jlink target
1011
JLINK_DEVICE = stm32u575ai

hw/bsp/stm32u5/family.mk

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ SRC_C += \
4141
ifeq ($(MCU_VARIANT),stm32u545xx)
4242
SRC_C += \
4343
src/portable/st/stm32_fsdev/dcd_stm32_fsdev.c
44-
else ($(MCU_VARIANT),stm32u535xx)
44+
else ifeq ($(MCU_VARIANT),stm32u535xx)
4545
SRC_C += \
4646
src/portable/st/stm32_fsdev/dcd_stm32_fsdev.c
4747
else

src/common/tusb_mcu.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@
271271
#define TUP_DCD_ENDPOINT_MAX 8
272272

273273
#elif TU_CHECK_MCU(OPT_MCU_STM32U5)
274-
#ifdef USB_DRD_FS
274+
#if defined (STM32U535xx) || defined (STM32U545xx)
275275
#define TUP_USBIP_FSDEV
276276
#define TUP_USBIP_FSDEV_STM32
277277
#define TUP_DCD_ENDPOINT_MAX 8

0 commit comments

Comments
 (0)