zephyr/boards: Add nrf5340dk board configuration.
Add support for the nrf5340dk. This DK has a MX25R64 8mb external QSPI
flash chip.
Compile using:
$ west build -b nrf5340dk/nrf5340/cpuapp
Signed-off-by: Patrick Joy <patrick@thinktransit.com.au>
This commit is contained in:
committed by
Damien George
parent
d939511dae
commit
e3d9d8ef51
2
ports/zephyr/boards/nrf5340dk_nrf5340_cpuapp.conf
Normal file
2
ports/zephyr/boards/nrf5340dk_nrf5340_cpuapp.conf
Normal file
@@ -0,0 +1,2 @@
|
||||
CONFIG_FLASH=y
|
||||
CONFIG_FLASH_MAP=y
|
||||
16
ports/zephyr/boards/nrf5340dk_nrf5340_cpuapp.overlay
Normal file
16
ports/zephyr/boards/nrf5340dk_nrf5340_cpuapp.overlay
Normal file
@@ -0,0 +1,16 @@
|
||||
// Replace default internal storage partition with external flash
|
||||
|
||||
/delete-node/ &storage_partition;
|
||||
|
||||
&mx25r64 {
|
||||
partitions {
|
||||
compatible = "fixed-partitions";
|
||||
#address-cells = <1>;
|
||||
#size-cells = <1>;
|
||||
|
||||
storage_partition: partition@0 {
|
||||
reg = <0x00000000 0x800000>;
|
||||
label = "storage";
|
||||
};
|
||||
};
|
||||
};
|
||||
Reference in New Issue
Block a user