mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-04 19:17:47 +00:00
nrf: expose the RAM base address
The RAM base address is needed during SoftDevice initialization. So far,
the same magic value has been used in aykevl/go-bluetooth and in TinyGo,
but this should be configured in only one place.
This will have additional benefits in the future:
* It is currently set to 0x39c0, which is around 14.5kB. Most nrf51822
chips have only 16kB of RAM, so this is way too much for those
chips.
* LLD in LLVM 11 allows expressions in the MEMORY part of linker
scripts, which will allow overriding the SoftDevice RAM area with a
linker flag, which might come in handy.
This commit is contained in:
committed by
Ron Evans
parent
9f4459cee1
commit
e69131c0d3
@@ -7,4 +7,7 @@ MEMORY
|
||||
|
||||
_stack_size = 4K;
|
||||
|
||||
/* This value is needed by the Nordic SoftDevice. */
|
||||
__app_ram_base = ORIGIN(RAM);
|
||||
|
||||
INCLUDE "targets/arm.ld"
|
||||
|
||||
@@ -7,4 +7,7 @@ MEMORY
|
||||
|
||||
_stack_size = 4K;
|
||||
|
||||
/* This value is needed by the Nordic SoftDevice. */
|
||||
__app_ram_base = ORIGIN(RAM);
|
||||
|
||||
INCLUDE "targets/arm.ld"
|
||||
|
||||
Reference in New Issue
Block a user