Skip to content

Commit 9839f04

Browse files
committed
Added storage_partition for rpi_pico in samples.
1 parent 05ff553 commit 9839f04

File tree

7 files changed

+143
-3
lines changed

7 files changed

+143
-3
lines changed

zephyr/samples/profiles/b-ld/README.rst

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,13 @@ Building and Running
3838
This sample can be found under :bacnet_file:`samples/profiles/b-ld` in
3939
the BACnet tree.
4040

41-
The sample can be built for several platforms.
41+
The sample can be built for several platforms - use `west boards` to
42+
list the supported boards.
4243

4344
Compile this sample for the `nucleo_f429zi` board:
4445

4546
west build -b nucleo_f429zi -p always bacnet/zephyr/samples/profiles/b-ld/
4647

48+
Compile this sample for the `rpi_pico` board:
49+
50+
west build -b rpi_pico -p always bacnet/zephyr/samples/profiles/b-ld/
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
/*
2+
* Copyright (c) 2021 Yonatan Schachter
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
&flash0 {
8+
reg = <0x10000000 DT_SIZE_M(2)>;
9+
10+
partitions {
11+
compatible = "fixed-partitions";
12+
#address-cells = <1>;
13+
#size-cells = <1>;
14+
15+
/* Reserved memory for the second stage bootloader */
16+
second_stage_bootloader: partition@0 {
17+
label = "second_stage_bootloader";
18+
reg = <0x00000000 0x100>;
19+
read-only;
20+
};
21+
22+
slot0_partition: partition@100 {
23+
label = "image-0";
24+
reg = <0x100 (DT_SIZE_M(1) - 0xF000)>;
25+
};
26+
27+
storage_partition: partition@1f9000 {
28+
label = "storage";
29+
reg = <0x1F9000 0x00007000>;
30+
};
31+
};
32+
};

zephyr/samples/profiles/b-ls/README.rst

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,13 @@ Building and Running
4545
This sample can be found under :bacnet_file:`samples/profiles/b-ls` in
4646
the BACnet tree.
4747

48-
The sample can be built for several platforms.
48+
The sample can be built for several platforms - use `west boards` to
49+
list the supported boards.
4950

5051
Compile this sample for the `nucleo_f429zi` board:
5152

5253
west build -b nucleo_f429zi -p always bacnet/zephyr/samples/profiles/b-ls/
5354

55+
Compile this sample for the `rpi_pico` board:
56+
57+
west build -b rpi_pico -p always bacnet/zephyr/samples/profiles/b-ls/
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
/*
2+
* Copyright (c) 2021 Yonatan Schachter
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
&flash0 {
8+
reg = <0x10000000 DT_SIZE_M(2)>;
9+
10+
partitions {
11+
compatible = "fixed-partitions";
12+
#address-cells = <1>;
13+
#size-cells = <1>;
14+
15+
/* Reserved memory for the second stage bootloader */
16+
second_stage_bootloader: partition@0 {
17+
label = "second_stage_bootloader";
18+
reg = <0x00000000 0x100>;
19+
read-only;
20+
};
21+
22+
slot0_partition: partition@100 {
23+
label = "image-0";
24+
reg = <0x100 (DT_SIZE_M(1) - 0xF000)>;
25+
};
26+
27+
storage_partition: partition@1f9000 {
28+
label = "storage";
29+
reg = <0x1F9000 0x00007000>;
30+
};
31+
};
32+
};

zephyr/samples/profiles/b-sa/README.rst

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,13 @@ Building and Running
2020
This sample can be found under :bacnet_file:`samples/profiles/b-sa` in
2121
the BACnet tree.
2222

23-
The sample can be built for several platforms.
23+
The sample can be built for several platforms. Use `west boards` to
24+
list the supported boards.
2425

2526
Compile this sample for the `nucleo_f429zi` board:
2627

2728
west build -b nucleo_f429zi -p always bacnet/zephyr/samples/profiles/b-sa/
2829

30+
Compile this sample for the `rpi_pico` board:
31+
32+
west build -b rpi_pico -p always bacnet/zephyr/samples/profiles/b-sa/
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
/*
2+
* Copyright (c) 2021 Yonatan Schachter
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
&flash0 {
8+
reg = <0x10000000 DT_SIZE_M(2)>;
9+
10+
partitions {
11+
compatible = "fixed-partitions";
12+
#address-cells = <1>;
13+
#size-cells = <1>;
14+
15+
/* Reserved memory for the second stage bootloader */
16+
second_stage_bootloader: partition@0 {
17+
label = "second_stage_bootloader";
18+
reg = <0x00000000 0x100>;
19+
read-only;
20+
};
21+
22+
slot0_partition: partition@100 {
23+
label = "image-0";
24+
reg = <0x100 (DT_SIZE_M(1) - 0xF000)>;
25+
};
26+
27+
storage_partition: partition@1f9000 {
28+
label = "storage";
29+
reg = <0x1F9000 0x00007000>;
30+
};
31+
};
32+
};
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
/*
2+
* Copyright (c) 2021 Yonatan Schachter
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
&flash0 {
8+
reg = <0x10000000 DT_SIZE_M(2)>;
9+
10+
partitions {
11+
compatible = "fixed-partitions";
12+
#address-cells = <1>;
13+
#size-cells = <1>;
14+
15+
/* Reserved memory for the second stage bootloader */
16+
second_stage_bootloader: partition@0 {
17+
label = "second_stage_bootloader";
18+
reg = <0x00000000 0x100>;
19+
read-only;
20+
};
21+
22+
slot0_partition: partition@100 {
23+
label = "image-0";
24+
reg = <0x100 (DT_SIZE_M(1) - 0xF000)>;
25+
};
26+
27+
storage_partition: partition@1f9000 {
28+
label = "storage";
29+
reg = <0x1F9000 0x00007000>;
30+
};
31+
};
32+
};

0 commit comments

Comments
 (0)