Skip to content

Commit fc0cb5b

Browse files
author
Amanda Butler
authored
Add heap notes in bootstrap.md
Apply changes from PR #1157 to v5.14.
1 parent d600c9a commit fc0cb5b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

docs/porting/target/bootstrap.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ The startup file contains interrupt vectors and low-level core and platform init
1010

1111
For more information about startup files, please see the [CMSIS documentation](http://www.keil.com/pack/doc/CMSIS/Core/html/startup_s_pg.html).
1212

13+
The template startup file in the CMSIS documentation includes heap and stack regions in the assembler. Omit these regions in Mbed OS because they come from the [linker script](#linker-scripts).
14+
15+
The initial stack pointer the vector table specifies should be derived from the linker script (as `|ARM_LIB_STACK$$ZI$$Limit|`, `__StackTop` or `sfe(CSTACK)`), rather than hardcoded in the startup file.
16+
1317
### Linker scripts
1418

1519
After adding the core files, the next step is to add linker scripts for Mbed OS. To do this, you can either use the linker scripts below and change the defines for your target or you can modify an existing linker script to be compatible with Mbed OS. You need to provide a version of the linker script for each Mbed OS supported toolchain.

0 commit comments

Comments
 (0)