summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorClyne Sullivan <clyne@bitgloo.com>2025-02-02 11:26:53 -0500
committerClyne Sullivan <clyne@bitgloo.com>2025-02-02 11:26:53 -0500
commit9c59a184dba820975e5da6fcd5d248aee87f7e2f (patch)
tree6b30516adc2ba0f7b0a8f5fb5d2e6966c03108d8 /Makefile
parentd09f4289b5788d6a8b34e424841292e2b8529e56 (diff)
add l476 implementationl476
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile68
1 files changed, 35 insertions, 33 deletions
diff --git a/Makefile b/Makefile
index 9fe97c8..de96cb0 100644
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,5 @@
##########################################################################################################################
-# File automatically-generated by tool: [projectgenerator] version: [4.5.0-RC5] date: [Sat Feb 01 13:11:42 EST 2025]
+# File automatically-generated by tool: [projectgenerator] version: [4.5.0-RC5] date: [Sun Feb 02 11:24:14 EST 2025]
##########################################################################################################################
# ------------------------------------------------
@@ -22,7 +22,7 @@ TARGET = microphone
# debug build?
DEBUG = 1
# optimization
-OPT = -O2
+OPT = -O3
#######################################
@@ -37,32 +37,34 @@ BUILD_DIR = build
# C sources
C_SOURCES = \
Core/Src/main.c \
-Core/Src/stm32u0xx_it.c \
-Core/Src/stm32u0xx_hal_msp.c \
-Drivers/STM32U0xx_HAL_Driver/Src/stm32u0xx_hal_cortex.c \
-Drivers/STM32U0xx_HAL_Driver/Src/stm32u0xx_hal_rcc.c \
-Drivers/STM32U0xx_HAL_Driver/Src/stm32u0xx_hal_rcc_ex.c \
-Drivers/STM32U0xx_HAL_Driver/Src/stm32u0xx_hal_flash.c \
-Drivers/STM32U0xx_HAL_Driver/Src/stm32u0xx_hal_flash_ex.c \
-Drivers/STM32U0xx_HAL_Driver/Src/stm32u0xx_hal_gpio.c \
-Drivers/STM32U0xx_HAL_Driver/Src/stm32u0xx_hal_dma.c \
-Drivers/STM32U0xx_HAL_Driver/Src/stm32u0xx_hal_dma_ex.c \
-Drivers/STM32U0xx_HAL_Driver/Src/stm32u0xx_hal_pwr.c \
-Drivers/STM32U0xx_HAL_Driver/Src/stm32u0xx_hal_pwr_ex.c \
-Drivers/STM32U0xx_HAL_Driver/Src/stm32u0xx_hal.c \
-Drivers/STM32U0xx_HAL_Driver/Src/stm32u0xx_hal_exti.c \
-Drivers/STM32U0xx_HAL_Driver/Src/stm32u0xx_hal_spi.c \
-Drivers/STM32U0xx_HAL_Driver/Src/stm32u0xx_hal_spi_ex.c \
-Drivers/STM32U0xx_HAL_Driver/Src/stm32u0xx_hal_uart.c \
-Drivers/STM32U0xx_HAL_Driver/Src/stm32u0xx_hal_uart_ex.c \
-Core/Src/system_stm32u0xx.c \
+Core/Src/stm32l4xx_it.c \
+Core/Src/stm32l4xx_hal_msp.c \
+Drivers/STM32L4xx_HAL_Driver/Src/stm32l4xx_hal_cortex.c \
+Drivers/STM32L4xx_HAL_Driver/Src/stm32l4xx_hal_rcc.c \
+Drivers/STM32L4xx_HAL_Driver/Src/stm32l4xx_hal_rcc_ex.c \
+Drivers/STM32L4xx_HAL_Driver/Src/stm32l4xx_hal_flash.c \
+Drivers/STM32L4xx_HAL_Driver/Src/stm32l4xx_hal_flash_ex.c \
+Drivers/STM32L4xx_HAL_Driver/Src/stm32l4xx_hal_gpio.c \
+Drivers/STM32L4xx_HAL_Driver/Src/stm32l4xx_hal_dma.c \
+Drivers/STM32L4xx_HAL_Driver/Src/stm32l4xx_hal_dma_ex.c \
+Drivers/STM32L4xx_HAL_Driver/Src/stm32l4xx_hal_pwr.c \
+Drivers/STM32L4xx_HAL_Driver/Src/stm32l4xx_hal_pwr_ex.c \
+Drivers/STM32L4xx_HAL_Driver/Src/stm32l4xx_hal.c \
+Drivers/STM32L4xx_HAL_Driver/Src/stm32l4xx_hal_exti.c \
+Drivers/STM32L4xx_HAL_Driver/Src/stm32l4xx_hal_spi.c \
+Drivers/STM32L4xx_HAL_Driver/Src/stm32l4xx_hal_spi_ex.c \
+Drivers/STM32L4xx_HAL_Driver/Src/stm32l4xx_hal_uart.c \
+Drivers/STM32L4xx_HAL_Driver/Src/stm32l4xx_hal_uart_ex.c \
+Core/Src/system_stm32l4xx.c \
Core/Src/sysmem.c \
-Core/Src/syscalls.c
+Core/Src/syscalls.c \
+Drivers/STM32L4xx_HAL_Driver/Src/stm32l4xx_hal_flash_ramfunc.c \
+Drivers/STM32L4xx_HAL_Driver/Src/stm32l4xx_hal_i2c.c \
+Drivers/STM32L4xx_HAL_Driver/Src/stm32l4xx_hal_i2c_ex.c
# ASM sources
ASM_SOURCES = \
-startup_stm32u083xx.s \
-Drivers/qfplib-m0-full-20240105/qfplib-m0-full.s
+Drivers/CMSIS/Device/ST/STM32L4xx/Source/Templates/gcc/startup_stm32l476xx.s
# ASM sources
ASMM_SOURCES =
@@ -92,13 +94,14 @@ BIN = $(CP) -O binary -S
# CFLAGS
#######################################
# cpu
-CPU = -mcpu=cortex-m0plus
+CPU = -mcpu=cortex-m4
# fpu
# NONE for Cortex-M0/M0+/M3
+FPU = -mfpu=fpv4-sp-d16
# float-abi
-
+FLOAT-ABI = -mfloat-abi=hard
# mcu
MCU = $(CPU) -mthumb $(FPU) $(FLOAT-ABI)
@@ -110,7 +113,7 @@ AS_DEFS =
# C defines
C_DEFS = \
-DUSE_HAL_DRIVER \
--DSTM32U083xx
+-DSTM32L476xx
# AS includes
@@ -119,11 +122,10 @@ AS_INCLUDES =
# C includes
C_INCLUDES = \
-ICore/Inc \
--IDrivers/STM32U0xx_HAL_Driver/Inc \
--IDrivers/STM32U0xx_HAL_Driver/Inc/Legacy \
--IDrivers/CMSIS/Device/ST/STM32U0xx/Include \
--IDrivers/CMSIS/Include \
--IDrivers/qfplib-m0-full-20240105
+-IDrivers/STM32L4xx_HAL_Driver/Inc \
+-IDrivers/STM32L4xx_HAL_Driver/Inc/Legacy \
+-IDrivers/CMSIS/Device/ST/STM32L4xx/Include \
+-IDrivers/CMSIS/Include
# compile gcc flags
@@ -144,7 +146,7 @@ CFLAGS += -MMD -MP -MF"$(@:%.o=%.d)"
# LDFLAGS
#######################################
# link script
-LDSCRIPT = STM32U083xx_FLASH.ld
+LDSCRIPT = stm32l476rgtx_flash.ld
# libraries
LIBS = -lc -lm -lnosys