fix 3, add hardfault pre handler
This commit is contained in:
4
Makefile
4
Makefile
@@ -4,7 +4,7 @@
|
||||
#####################################################################################
|
||||
#Add Files and Folders below#########################################################
|
||||
CFILES = main.c syscalls/syscalls.c uart/uart.c startup/system_stm32f4xx.c
|
||||
ASFILES = boot/startup_stm32f4xx.S
|
||||
ASFILES = boot/startup_stm32f4xx.S hardfault/hardfault_prehandler.S
|
||||
INCLUDEPATH = -Iinclude
|
||||
|
||||
|
||||
@@ -32,7 +32,7 @@ LFLAGS += -mfloat-abi=hard -mfpu=fpv4-sp-d16 --disable-newlib-supplied-syscalls
|
||||
LFLAGS += -Tstm32f407vgt6_flash.ld -Wl,-Map=$(mapfile).map -Wl,--gc-sections
|
||||
|
||||
CFLAGS = -c -fmessage-length=0 -mlittle-endian -mthumb -mcpu=cortex-m4 -mthumb-interwork
|
||||
CFLAGS += -mfloat-abi=hard -mfpu=fpv4-sp-d16 -nostartfiles -Wall -O3
|
||||
CFLAGS += -mfloat-abi=hard -mfpu=fpv4-sp-d16 -nostartfiles -Wall -O0 -g3
|
||||
|
||||
####################################################################################
|
||||
|
||||
|
Reference in New Issue
Block a user