mirror of
https://github.com/rfivet/stm32bringup.git
synced 2024-12-18 06:46:23 -05:00
RAMISRV compilation flag set based on FLASHSTART address
This commit is contained in:
parent
c3dc389ff2
commit
7be625daab
13
Makefile
13
Makefile
@ -41,19 +41,24 @@ SIZE = $(BINPFX)size
|
||||
|
||||
PROJECT = f030f4.$(FLASHSTART)
|
||||
|
||||
# In RAM Execution, Bootloader uses first 2K of RAM
|
||||
# In RAM Execution
|
||||
# Bootloader uses first 2K of RAM, execution from bootloader
|
||||
#FLASHSTART = 0x20000800
|
||||
#FLASHSIZE = 2K
|
||||
#RAMSTART = 0x20000000
|
||||
#RAMSIZE = 2K
|
||||
#RAMISRV = 1
|
||||
|
||||
# In Flash Execution, ISR vector copied and mapped to RAM if RAMISRV is not 0
|
||||
# In Flash Execution
|
||||
# if FLASHSTART is not at beginning of FLASH: execution from bootloader
|
||||
FLASHSTART = 0x08000000
|
||||
FLASHSIZE = 16K
|
||||
RAMSTART = 0x20000000
|
||||
RAMSIZE = 4K
|
||||
#RAMISRV = 1
|
||||
|
||||
# ISR vector copied and mapped to RAM if FLASHSTART != 0x08000000
|
||||
ifneq ($(FLASHSTART),0x08000000)
|
||||
RAMISRV := 1
|
||||
endif
|
||||
|
||||
#SRCS = boot.c
|
||||
#SRCS = ledon.c
|
||||
|
Loading…
Reference in New Issue
Block a user