Skip to content

Commit abf0f07

Browse files
committed
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>
1 parent 072bd07 commit abf0f07

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

stmhal/stm32f405.ld

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@ MEMORY
1111
CCMRAM (xrw) : ORIGIN = 0x10000000, LENGTH = 0x010000 /* 64 KiB */
1212
RAM (xrw) : ORIGIN = 0x20000000, LENGTH = 0x020000 /* 128 KiB */
1313
}
14-
14+
15+
ENTRY(Reset_Handler)
16+
1517
/* produce a link error if there is not this amount of RAM for these sections */
1618
_minimum_stack_size = 2K;
1719
_minimum_heap_size = 16K;

0 commit comments

Comments
 (0)