build for solo

This commit is contained in:
Conor Patrick
2018-10-19 22:08:10 -04:00
parent c0a639cde5
commit ae26e0c167
4 changed files with 179 additions and 81 deletions

View File

@@ -1,6 +1,6 @@
CC=arm-none-eabi-gcc.exe
CP=arm-none-eabi-objcopy.exe
SZ=arm-none-eabi-size.exe
CC=arm-none-eabi-gcc
CP=arm-none-eabi-objcopy
SZ=arm-none-eabi-size
SRC=src/main.c src/startup_stm32l432xx.s src/system_stm32l4xx.c $(wildcard lib/*c)
OBJ=$(SRC:.c=.o)
@@ -12,7 +12,12 @@ CFLAGS= $(INC)
TARGET=solo
HW=-mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -mfloat-abi=hard -mthumb
CFLAGS=$(INC) -c -DSTM32L432xx -DUSE_FULL_LL_DRIVER -O0 -Wall -fdata-sections -ffunction-sections
# Nucleo board
#CHIP=STM32L432xx
# Solo
CHIP=STM32L442xx
CFLAGS=$(INC) -c -D$(CHIP) -DUSE_FULL_LL_DRIVER -O0 -Wall -fdata-sections -ffunction-sections
LDFLAGS=$(HW) -specs=nano.specs -T$(LDSCRIPT) -Wl,-Map=$(TARGET).map,--cref -Wl,--gc-sections
all: $(TARGET).elf
@@ -32,5 +37,7 @@ clean:
rm -f *.o src/*.o src/*.elf *.elf
flash:
STM32_Programmer_CLI.exe -c port=SWD -halt -d $(TARGET).hex -rst
STM32_Programmer_CLI -c port=SWD -halt -d $(TARGET).hex -rst
sleep 0.5
python dfuse-tool/dfuse-tool.py --leave