summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorTobias Breitwieser <tobias@breitwieser.biz>2020-09-18 00:19:55 +0200
committerGitHub <noreply@github.com>2020-09-18 00:19:55 +0200
commit85beb10cd0be98345748f0d3d3b41302bea32f10 (patch)
tree3cc8b9ff91ada40f5b3a136d4bf5580f254dc56f /examples
parent0c36d0c090799fd43bbdf25ff2e725cc9eaf2854 (diff)
downloadnrf-softdevice-85beb10cd0be98345748f0d3d3b41302bea32f10.zip
Maximum length for Flash and better comment
Diffstat (limited to 'examples')
-rw-r--r--examples/memory.x31
1 files changed, 2 insertions, 29 deletions
diff --git a/examples/memory.x b/examples/memory.x
index f98ee4a..25d9a02 100644
--- a/examples/memory.x
+++ b/examples/memory.x
@@ -1,34 +1,7 @@
MEMORY
{
/* NOTE 1 K = 1 KiBi = 1024 bytes */
- /* TODO Adjust these memory regions to match your device memory layout */
- /* These values correspond to the LM3S6965, one of the few devices QEMU can emulate */
- FLASH : ORIGIN = 0x00027000, LENGTH = 256K
+ /* These values correspond to the NRF52840 with Softdevices S140 7.0.1 */
+ FLASH : ORIGIN = 0x00027000, LENGTH = 868K
RAM : ORIGIN = 0x20020000, LENGTH = 128K
}
-
-/* This is where the call stack will be allocated. */
-/* The stack is of the full descending type. */
-/* You may want to use this variable to locate the call stack and static
- variables in different memory regions. Below is shown the default value */
-/* _stack_start = ORIGIN(RAM) + LENGTH(RAM); */
-
-/* You can use this symbol to customize the location of the .text section */
-/* If omitted the .text section will be placed right after the .vector_table
- section */
-/* This is required only on microcontrollers that store some configuration right
- after the vector table */
-/* _stext = ORIGIN(FLASH) + 0x400; */
-
-/* Example of putting non-initialized variables into custom RAM locations. */
-/* This assumes you have defined a region RAM2 above, and in the Rust
- sources added the attribute `#[link_section = ".ram2bss"]` to the data
- you want to place there. */
-/* Note that the section will not be zero-initialized by the runtime! */
-/* SECTIONS {
- .ram2bss (NOLOAD) : ALIGN(4) {
- *(.ram2bss);
- . = ALIGN(4);
- } > RAM2
- } INSERT AFTER .bss;
-*/