Fix up issues running on revF boards
[SCSI2SD-V6.git] / Makefile.2021
index 5894e9738bbff6709dc6f512f28eb25e286c2bee..55488e6c78a561d77b2508138aab42aaeea076af 100644 (file)
@@ -2,7 +2,8 @@
 ARMCC=arm-none-eabi-gcc
 OBJCOPY=arm-none-eabi-objcopy
 
-CPPFLAGS=-DSTM32F446xx -DSTM32F4xx -DUSE_HAL_DRIVER -Wall 
+CPPFLAGS=-DSTM32F446xx -DSTM32F4xx -DUSE_HAL_DRIVER -Wall -DS2S_USB_HS
+#CPPFLAGS=-DSTM32F446xx -DSTM32F4xx -DUSE_HAL_DRIVER -Wall -DS2S_USB_FS
 CFLAGS=-mcpu=cortex-m4 -mthumb -mslow-flash-data \
        -std=gnu11 \
        -specs=nosys.specs \
@@ -144,7 +145,7 @@ SRC = \
        src/firmware/bsp_driver_sd.c \
        ${USBCOMPOSITE_SRC}
 
-build/2021/firmware.elf: $(SRC) rtl/fpga_bitmap.o $(STM32OBJS)
+build/2021/firmware.elf: $(SRC) rtl/fpga_bitmap.2020.o $(STM32OBJS)
        $(ARMCC) $(CPPFLAGS) $(CFLAGS) -o $@ $(STM32CubeMX_INCUDE) $(INCLUDE) $^ $(LDFLAGS)
        @EBSS=`arm-none-eabi-nm build/2021/firmware.elf | grep _ebss | cut -f1 "-d "`; \
        echo HEAPSIZE = $$((0x2001C000 - 0x$${EBSS})) bytes