Skip to content

Commit e2c9864

Browse files
committed
Fixed platforms.txt linker step. Increased stack size.
1 parent 1e496de commit e2c9864

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

hardware/arduino/sam/platform.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ compiler.path={runtime.ide.path}/hardware/tools/g++_arm_none_eabi/bin/
77
#compiler.path=C:/arm-none-eabi-gcc-4_6/bin/
88
compiler.c.cmd=arm-none-eabi-gcc
99
compiler.c.flags=-c -g -Os -w -ffunction-sections -fdata-sections -nostdlib --param max-inline-insns-single=500 -Dprintf=iprintf
10-
compiler.c.elf.cmd=arm-none-eabi-gcc
10+
compiler.c.elf.cmd=arm-none-eabi-g++
1111
compiler.c.elf.flags=-Os -Wl,--gc-sections
1212
compiler.S.flags=-c -g -assembler-with-cpp
1313
compiler.cpp.cmd=arm-none-eabi-g++
@@ -62,7 +62,7 @@ tools.bossac.path={runtime.ide.path}/hardware/tools
6262

6363
tools.bossac.upload.params.verbose=-i -d
6464
tools.bossac.upload.params.quiet=
65-
tools.bossac.upload.pattern="{path}/{cmd}" {upload.verbose} --port={serial.port.file} -e -w -v -b "{build.path}/{build.project_name}.bin"
65+
tools.bossac.upload.pattern="{path}/{cmd}" {upload.verbose} --port={serial.port.file} -e -w -v -b "{build.path}/{build.project_name}.bin" -R
6666

6767
# specialized tool for adk2 to twiddle the erase line before running bossac
6868
tools.adk2install.cmd=adk2install

hardware/arduino/sam/variants/arduino_due_x/linker_scripts/gcc/flash.ld

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ MEMORY
4141
}
4242

4343
/* The stack size used by the application. NOTE: you need to adjust */
44-
STACK_SIZE = DEFINED(STACK_SIZE) ? STACK_SIZE : 0x2000 ;
44+
STACK_SIZE = DEFINED(STACK_SIZE) ? STACK_SIZE : 0x8000 ;
4545

4646
/* Section Definitions */
4747
SECTIONS
@@ -117,7 +117,7 @@ SECTIONS
117117
} > ram
118118

119119
/* .bss section which is used for uninitialized data */
120-
.bss (NOLOAD) :
120+
.bss ALIGN(4) (NOLOAD) :
121121
{
122122
. = ALIGN(4);
123123
_sbss = . ;

0 commit comments

Comments
 (0)