diff options
| author | Chris Mason <c.mason@inchipdesign.com.au> | 2019-05-15 00:43:38 +1000 |
|---|---|---|
| committer | Damien George <damien.p.george@gmail.com> | 2019-06-14 15:29:24 +1000 |
| commit | 14cf91f70467aa928f3e17223f108ace0864b4fe (patch) | |
| tree | fdc70c3501e88d8c402d745923df30e243f059d9 /ports/stm32/modmachine.c | |
| parent | 8b18cfedee441413d6b53a3d7c083a1e3a1a47e6 (diff) | |
stm32: In link script, define start of stack separately from heap end.
Previously the end of the heap was the start (lowest address) of the stack.
With the changes in this commit these addresses are now independent,
allowing a board to place the heap and stack in separate locations.
Diffstat (limited to 'ports/stm32/modmachine.c')
| -rw-r--r-- | ports/stm32/modmachine.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ports/stm32/modmachine.c b/ports/stm32/modmachine.c index eca8322ea..cf615ea6a 100644 --- a/ports/stm32/modmachine.c +++ b/ports/stm32/modmachine.c @@ -174,6 +174,7 @@ STATIC mp_obj_t machine_info(size_t n_args, const mp_obj_t *args) { printf("_edata=%p\n", &_edata); printf("_sbss=%p\n", &_sbss); printf("_ebss=%p\n", &_ebss); + printf("_sstack=%p\n", &_sstack); printf("_estack=%p\n", &_estack); printf("_ram_start=%p\n", &_ram_start); printf("_heap_start=%p\n", &_heap_start); |
