diff options
author | Sven Wegener <sven.wegener@stealer.net> | 2014-10-21 10:22:53 +0200 |
---|---|---|
committer | Sven Wegener <sven.wegener@stealer.net> | 2014-10-21 16:48:32 +0200 |
commit | abf0f07a5a48df90a44a7fc63c24fc7f5532233b (patch) | |
tree | 86445c56f619e42ce2318242e2ec2d54772f804c /stmhal | |
parent | 072bd07f178998f2c88cd2ceef86dea7902a1764 (diff) | |
download | micropython-abf0f07a5a48df90a44a7fc63c24fc7f5532233b.tar.gz micropython-abf0f07a5a48df90a44a7fc63c24fc7f5532233b.zip |
stmhal: Set entry point for ELF binary debugging
When loading the ELF binary to the board with a debugger, the debugger
needs to know at which point to start executing the code. Currently the
entry point defaults to the start of the .text section.
Signed-off-by: Sven Wegener <sven.wegener@stealer.net>
Diffstat (limited to 'stmhal')
-rw-r--r-- | stmhal/stm32f405.ld | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/stmhal/stm32f405.ld b/stmhal/stm32f405.ld index 5af1d32998..5d9f0d2a9d 100644 --- a/stmhal/stm32f405.ld +++ b/stmhal/stm32f405.ld @@ -11,7 +11,9 @@ MEMORY CCMRAM (xrw) : ORIGIN = 0x10000000, LENGTH = 0x010000 /* 64 KiB */ RAM (xrw) : ORIGIN = 0x20000000, LENGTH = 0x020000 /* 128 KiB */ } - + +ENTRY(Reset_Handler) + /* produce a link error if there is not this amount of RAM for these sections */ _minimum_stack_size = 2K; _minimum_heap_size = 16K; |