Makefile.stm32l5 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. VPATH += :$(HALPATH)/stm32l5
  2. VPATH += :$(HALPATH)/stm32l5/Src
  3. SRC += stm32l5_hal.c \
  4. stm32l5xx_hal.c \
  5. stm32l5xx_hal_rcc.c \
  6. stm32l5xx_hal_rcc_ex.c \
  7. stm32l5xx_hal_gpio.c \
  8. stm32l5xx_hal_uart.c \
  9. stm32l5xx_hal_pwr.c \
  10. stm32l5xx_hal_pwr_ex.c \
  11. stm32l5xx_hal_cortex.c \
  12. stm32l5xx_hal_cryp.c \
  13. stm32l5xx_hal_cryp_ex.c
  14. EXTRAINCDIRS += $(HALPATH)/stm32l5 $(HALPATH)/stm32l5/Inc $(HALPATH)/stm32l5/Inc/Legacy $(HALPATH)/stm32l5/CMSIS
  15. ASRC += startup_stm32l562xx.S
  16. MCU_FLAGS = -mcpu=cortex-m33
  17. CC = arm-none-eabi-gcc
  18. OBJCOPY = arm-none-eabi-objcopy
  19. OBJDUMP = arm-none-eabi-objdump
  20. SIZE = arm-none-eabi-size
  21. AR = arm-none-eabi-ar rcs
  22. NM = arm-none-eabi-nm
  23. #Output Format = Binary for this target
  24. FORMAT = binary
  25. CFLAGS += -mthumb -fmessage-length=0 -ffunction-sections
  26. CPPFLAGS += -mthumb -fmessage-length=0 -ffunction-sections
  27. ASFLAGS += -mthumb -fmessage-length=0 -ffunction-sections
  28. CDEFS += -DSTM32L562RGTx -DSTM32L5 -DSTM32 -DDEBUG -DSTM32L562xx
  29. CPPDEFS += -DSTM32F562RGTx -DSTM32L5 -DSTM32 -DDEBUG
  30. LDFLAGS += --specs=nano.specs -T $(HALPATH)/stm32l5/stm32l562xx.ld -Wl,--gc-sections -lm