diff options
author | Lorenz Meier <lm@inf.ethz.ch> | 2014-11-15 13:50:56 +0100 |
---|---|---|
committer | Lorenz Meier <lm@inf.ethz.ch> | 2014-11-15 13:50:56 +0100 |
commit | 75bc8136b1d1d773a5664a226b5b766867fe5ff3 (patch) | |
tree | 38c7b04da36c75b942fbbe5bf0450b1e34fc1f2f /nuttx-configs/px4fmu-v2 | |
parent | d4a5f345aabc83506b05277b9dcf71e24700c70d (diff) | |
download | px4-firmware-75bc8136b1d1d773a5664a226b5b766867fe5ff3.tar.gz px4-firmware-75bc8136b1d1d773a5664a226b5b766867fe5ff3.tar.bz2 px4-firmware-75bc8136b1d1d773a5664a226b5b766867fe5ff3.zip |
Build NuttX optimized for size
Diffstat (limited to 'nuttx-configs/px4fmu-v2')
-rw-r--r-- | nuttx-configs/px4fmu-v2/nsh/Make.defs | 2 | ||||
-rw-r--r-- | nuttx-configs/px4fmu-v2/scripts/ld.script | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/nuttx-configs/px4fmu-v2/nsh/Make.defs b/nuttx-configs/px4fmu-v2/nsh/Make.defs index e70320aaa..f3ce53b4a 100644 --- a/nuttx-configs/px4fmu-v2/nsh/Make.defs +++ b/nuttx-configs/px4fmu-v2/nsh/Make.defs @@ -53,7 +53,7 @@ NM = $(CROSSDEV)nm OBJCOPY = $(CROSSDEV)objcopy OBJDUMP = $(CROSSDEV)objdump -MAXOPTIMIZATION = -O3 +MAXOPTIMIZATION = -Os ARCHCPUFLAGS = -mcpu=cortex-m4 \ -mthumb \ -march=armv7e-m \ diff --git a/nuttx-configs/px4fmu-v2/scripts/ld.script b/nuttx-configs/px4fmu-v2/scripts/ld.script index 1be39fb87..bec896d1c 100644 --- a/nuttx-configs/px4fmu-v2/scripts/ld.script +++ b/nuttx-configs/px4fmu-v2/scripts/ld.script @@ -50,7 +50,8 @@ MEMORY { - flash (rx) : ORIGIN = 0x08004000, LENGTH = 2032K + /* disabled due to silicon errata flash (rx) : ORIGIN = 0x08004000, LENGTH = 2032K */ + flash (rx) : ORIGIN = 0x08004000, LENGTH = 1008K sram (rwx) : ORIGIN = 0x20000000, LENGTH = 192K ccsram (rwx) : ORIGIN = 0x10000000, LENGTH = 64K } |