diff options
author | Vegard Storheil Eriksen <zyp@jvnv.net> | 2017-05-14 10:28:39 +0200 |
---|---|---|
committer | Vegard Storheil Eriksen <zyp@jvnv.net> | 2017-05-14 10:28:39 +0200 |
commit | acd3440e1b85fe102e3537d042e0ffd2f58d06a8 (patch) | |
tree | 0ba815b766a21b6614a89d773a2070102bcfeb5d /build_rules | |
parent | 4796432e8d165b5358af9675f2ca15a61bafee68 (diff) |
Added STM32F401 linker script.
Diffstat (limited to 'build_rules')
-rw-r--r-- | build_rules | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/build_rules b/build_rules index 6137608..81547eb 100644 --- a/build_rules +++ b/build_rules @@ -72,6 +72,14 @@ def select_stm32(env, variant): 'c': 'stm32_f373_c.ld', }[flash] + elif family in ('f401'): + select_arm(env, 'cortex-m4f') + env.Append(CPPDEFINES = ['STM32F4']) + + env['LINK_SCRIPT'] = { + 'e': 'stm32_f401_e.ld', + }[flash] + elif family in ('f405', 'f407'): select_arm(env, 'cortex-m4f') env.Append(CPPDEFINES = ['STM32F4']) |