44 lines
926 B
Plaintext
44 lines
926 B
Plaintext
/ {
|
|
chosen {
|
|
zephyr,console = &rtt;
|
|
zephyr,shell = &rtt;
|
|
zephyr,settings-partition = &storage_partition;
|
|
};
|
|
|
|
rtt: rtt {
|
|
compatible = "segger,rtt-uart";
|
|
#address-cells = <1>;
|
|
#size-cells = <0>;
|
|
label = "RTT";
|
|
status = "okay";
|
|
};
|
|
};
|
|
|
|
&flash0 {
|
|
partitions {
|
|
compatible = "fixed-partitions";
|
|
#address-cells = <1>;
|
|
#size-cells = <1>;
|
|
|
|
/* Application partition starts at the beginning of flash */
|
|
slot0_partition: partition@0 {
|
|
label = "image-0";
|
|
reg = <0x00000000 DT_SIZE_K(120)>;
|
|
};
|
|
|
|
/* Use the last 8K for settings */
|
|
storage_partition: partition@1E000 {
|
|
label = "storage";
|
|
reg = <0x0001E000 DT_SIZE_K(8)>;
|
|
};
|
|
};
|
|
};
|
|
|
|
&usart1 {
|
|
modbus0 {
|
|
compatible = "zephyr,modbus-serial";
|
|
status = "okay";
|
|
};
|
|
status = "okay";
|
|
};
|