Update linker flags for teensy platform

This commit is contained in:
Valeriy Koval
2016-03-18 18:50:05 +02:00
parent 32e1ce219a
commit 553b91460a
2 changed files with 6 additions and 4 deletions

View File

@ -36,7 +36,7 @@
"teensy30": {
"build": {
"core": "teensy3",
"extra_flags": "-D__MK20DX128__",
"extra_flags": "-D__MK20DX128__ -larm_cortexM4l_math",
"f_cpu": "48000000L",
"ldscript": "mk20dx128.ld",
"mcu": "mk20dx128",
@ -56,7 +56,7 @@
"teensy31": {
"build": {
"core": "teensy3",
"extra_flags": "-D__MK20DX256__",
"extra_flags": "-D__MK20DX256__ -larm_cortexM4l_math",
"f_cpu": "72000000L",
"ldscript": "mk20dx256.ld",
"mcu": "mk20dx256",
@ -76,7 +76,7 @@
"teensylc": {
"build": {
"core": "teensy3",
"extra_flags": "-D__MKL26Z64__",
"extra_flags": "-D__MKL26Z64__ -larm_cortexM0l_math",
"f_cpu": "48000000L",
"ldscript": "mkl26z64.ld",
"mcu": "mkl26z64",

View File

@ -29,7 +29,9 @@ elif env.get("BOARD_OPTIONS", {}).get("build", {}).get("core") == "teensy3":
SConscript(env.subst(join("$PIOBUILDER_DIR", "scripts", "basearm.py")))
env.Append(
LINKFLAGS=[
"-Wl,--defsym=__rtc_localtime=$UNIX_TIME"
"-Wl,--defsym=__rtc_localtime=$UNIX_TIME",
"-fsingle-precision-constant",
"--specs=nano.specs"
],
CCFLAGS=[
"-fsingle-precision-constant"