diff options
author | Daniel Friesel <daniel.friesel@uos.de> | 2021-05-21 15:42:38 +0200 |
---|---|---|
committer | Daniel Friesel <daniel.friesel@uos.de> | 2021-05-21 18:34:23 +0200 |
commit | 493424721011bbb0c292f106266bd2ce330ac78c (patch) | |
tree | 93e39159fbe669932bbe881c52e3406729c9907e | |
parent | 6971267ef5adb6f84b6a83859b588945c4fbc9cc (diff) |
stackm: add stm32f446re support
-rwxr-xr-x | script/static-stack-analyze.pl | 12 | ||||
-rw-r--r-- | src/arch/stm32f446re-nucleo/Makefile.inc | 2 |
2 files changed, 11 insertions, 3 deletions
diff --git a/script/static-stack-analyze.pl b/script/static-stack-analyze.pl index 003be15..ed83726 100755 --- a/script/static-stack-analyze.pl +++ b/script/static-stack-analyze.pl @@ -36,17 +36,23 @@ my %arch_data = ( call_relocation => 'R_AVR_CALL', }, msp430 => { - # For each function call, the 4-Byte (20 bits at 2-Byte alignment) return + # For each function call, the 2-Byte (16 bits at 2-Byte alignment) return # address is pushed onto the stack. - call_cost => 4, + call_cost => 2, call_relocation => 'R_MSP430X_ABS16', }, msp430large => { - # For each function call, the 4-Byte (20 bits at 2-Byte alignment) return + # For each function call, the 4-Byte (20 bits at 4-Byte alignment) return # address is pushed onto the stack. call_cost => 4, call_relocation => 'R_MSP430X_ABS20_ADR_DST', }, + stm32f4 => { + # For each function call, the 4-Byte (32 bits) return + # address is pushed onto the stack. + call_cost => 4, + call_relocation => 'R_ARM_THM_CALL', + }, ); my %addresses; diff --git a/src/arch/stm32f446re-nucleo/Makefile.inc b/src/arch/stm32f446re-nucleo/Makefile.inc index 2ecb7fc..9524f5a 100644 --- a/src/arch/stm32f446re-nucleo/Makefile.inc +++ b/src/arch/stm32f446re-nucleo/Makefile.inc @@ -20,6 +20,8 @@ OBJCOPY = arm-none-eabi-objcopy OBJDUMP = arm-none-eabi-objdump SIZE = arm-none-eabi-size +ARCH_SHORTNAME = stm32f4 + CXX_TARGETS += src/arch/stm32f446re-nucleo/arch.cc ifdef CONFIG_aspectc |