Makefile.stm32l4 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. VPATH += :$(HALPATH)/stm32l4
  2. VPATH += :$(HALPATH)/stm32l4/Src
  3. SRC += stm32l4_hal.c \
  4. stm32l4xx_hal.c \
  5. stm32l4xx_hal_rcc.c \
  6. stm32l4xx_hal_rcc_ex.c \
  7. stm32l4xx_hal_gpio.c \
  8. stm32l4xx_hal_uart.c \
  9. stm32l4xx_hal_pwr.c \
  10. stm32l4xx_hal_pwr_ex.c \
  11. stm32l4xx_hal_cortex.c \
  12. stm32l4xx_hal_cryp.c \
  13. stm32l4xx_hal_cryp_ex.c
  14. EXTRAINCDIRS += $(HALPATH)/stm32l4 $(HALPATH)/stm32l4/Inc $(HALPATH)/stm32l4/Inc/Legacy $(HALPATH)/stm32l4/CMSIS/Include
  15. ASRC += startup_stm32l443xx.S
  16. MCU_FLAGS = -mcpu=cortex-m4
  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 -mfloat-abi=soft -fmessage-length=0 -ffunction-sections
  26. CPPFLAGS += -mthumb -mfloat-abi=soft -fmessage-length=0 -ffunction-sections
  27. ASFLAGS += -mthumb -mfloat-abi=soft -fmessage-length=0 -ffunction-sections
  28. CDEFS += -DSTM32L433RCTx -DSTM32L4 -DSTM32 -DDEBUG -DSTM32L443xx -DHSE_VALUE=7372800UL
  29. CPPDEFS += -DSTM32L433RCTx -DSTM32L4 -DSTM32 -DDEBUG -DHSE_VALUE=7372800UL
  30. LDFLAGS += --specs=nano.specs -T $(HALPATH)/stm32l4/STM32L443RCTx_FLASH.ld -Wl,--gc-sections -lm