1/* 2 * Copyright (c) 2024 Jacob Winther 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 * 6 */ 7 8/ { 9 chosen { 10 zephyr,sram = &sram0; 11 zephyr,flash = &flash0; 12 zephyr,code-partition = &code_partition; 13 }; 14}; 15 16&flash0 { 17 /* 18 * Default flash layout for nrf52840 using UF2 and SoftDevice s140 v6 19 * 20 * 0x00000000 SoftDevice s140 v6 (152 kB) 21 * 0x00026000 Application partition (792 kB) 22 * 0x000ec000 Storage partition (32 kB) 23 * 0x000f4000 UF2 boot partition (48 kB) 24 * 25 * See https://learn.adafruit.com/introducing-the-adafruit-nrf52840-feather/hathach-memory-map 26 */ 27 28 partitions { 29 compatible = "fixed-partitions"; 30 #address-cells = <1>; 31 #size-cells = <1>; 32 33 reserved_partition_0: partition@0 { 34 label = "SoftDevice"; 35 read-only; 36 reg = <0x00000000 0x00026000>; 37 }; 38 code_partition: partition@26000 { 39 label = "Application"; 40 reg = <0x00026000 0x000C6000>; 41 }; 42 43 storage_partition: partition@ec000 { 44 label = "Storage"; 45 reg = <0x000ec000 0x00008000>; 46 }; 47 48 boot_partition: partition@f4000 { 49 label = "UF2"; 50 read-only; 51 reg = <0x000f4000 0x0000c000>; 52 }; 53 }; 54}; 55