[ion/f730] WIP: Adapt linker script and DEBUG=1 to fit in flash

This commit is contained in:
Ruben Dashyan
2019-01-10 16:53:47 +01:00
parent c72b604aa8
commit 440d0b47f6
2 changed files with 2 additions and 2 deletions

View File

@@ -8,7 +8,7 @@ CXXFLAGS = -std=c++11 -fno-exceptions -fno-rtti -fno-threadsafe-statics
# Flags - Optimizations
ifeq ($(DEBUG),1)
SFLAGS = -O0 -g
SFLAGS = -Og -g
else
SFLAGS = -Os
endif

View File

@@ -9,7 +9,7 @@
* This will let us use shortcuts such as ">FLASH" to ask for a given section to
* be stored in Flash. */
MEMORY {
FLASH (rx) : ORIGIN = 0x08000000, LENGTH = 1024K
FLASH (rx) : ORIGIN = 0x08000000, LENGTH = 512K
SRAM (rw) : ORIGIN = 0x20000000, LENGTH = 256K
}