Skip to content

Commit 3afec82

Browse files
committed
Modified samples to support samd on adafruit metro m4 boards
1 parent e5816c2 commit 3afec82

File tree

9 files changed

+165
-1
lines changed

9 files changed

+165
-1
lines changed

west.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,11 @@ manifest:
4848
name-allowlist:
4949
- cmsis
5050
- picolibc
51+
- hal_atmel
52+
- hal_nordic
5153
- hal_stm32
5254
- hal_microchip
55+
- hal_nxp
5356
- hal_espressif
5457
- hal_rpi_pico
5558
- segger

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,3 +48,7 @@ Compile this sample for the `nucleo_f429zi` board:
4848
Compile this sample for the `rpi_pico` board:
4949

5050
west build -b rpi_pico -p always bacnet/zephyr/samples/profiles/b-ld/
51+
52+
Compile this sample for the `adafruit_grand_central_m4_express` board with
53+
54+
west build -b adafruit_grand_central_m4_express -p always bacnet/zephyr/samples/profiles/b-ld/
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
/*
2+
* Copyright (c) 2020 Google LLC.
3+
* Copyright (c) 2024 Daikin Comfort Technologies North America, Inc.
4+
*
5+
* SPDX-License-Identifier: Apache-2.0
6+
*/
7+
&flash0 {
8+
partitions {
9+
compatible = "fixed-partitions";
10+
#address-cells = <1>;
11+
#size-cells = <1>;
12+
13+
boot_partition: partition@0 {
14+
label = "uf2";
15+
reg = <0x00000000 DT_SIZE_K(16)>;
16+
read-only;
17+
};
18+
19+
code_partition: partition@4000 {
20+
label = "code";
21+
reg = <0x4000 DT_SIZE_K(512-16-16)>;
22+
read-only;
23+
};
24+
25+
/*
26+
* The final 16 KiB is reserved for the application.
27+
* Storage partition will be used by FCB/LittleFS/NVS
28+
* if enabled.
29+
*/
30+
storage_partition: partition@7c000 {
31+
label = "storage";
32+
reg = <0x7c000 DT_SIZE_K(16)>;
33+
};
34+
};
35+
};

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,3 +55,7 @@ Compile this sample for the `nucleo_f429zi` board:
5555
Compile this sample for the `rpi_pico` board:
5656

5757
west build -b rpi_pico -p always bacnet/zephyr/samples/profiles/b-ls/
58+
59+
Compile this sample for the `adafruit_grand_central_m4_express` board with
60+
61+
west build -b adafruit_grand_central_m4_express -p always bacnet/zephyr/samples/profiles/b-ld/
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
/*
2+
* Copyright (c) 2020 Google LLC.
3+
* Copyright (c) 2024 Daikin Comfort Technologies North America, Inc.
4+
*
5+
* SPDX-License-Identifier: Apache-2.0
6+
*/
7+
&flash0 {
8+
partitions {
9+
compatible = "fixed-partitions";
10+
#address-cells = <1>;
11+
#size-cells = <1>;
12+
13+
boot_partition: partition@0 {
14+
label = "uf2";
15+
reg = <0x00000000 DT_SIZE_K(16)>;
16+
read-only;
17+
};
18+
19+
code_partition: partition@4000 {
20+
label = "code";
21+
reg = <0x4000 DT_SIZE_K(512-16-16)>;
22+
read-only;
23+
};
24+
25+
/*
26+
* The final 16 KiB is reserved for the application.
27+
* Storage partition will be used by FCB/LittleFS/NVS
28+
* if enabled.
29+
*/
30+
storage_partition: partition@7c000 {
31+
label = "storage";
32+
reg = <0x7c000 DT_SIZE_K(16)>;
33+
};
34+
};
35+
};

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,7 @@ Compile this sample for the `nucleo_f429zi` board:
3030
Compile this sample for the `rpi_pico` board:
3131

3232
west build -b rpi_pico -p always bacnet/zephyr/samples/profiles/b-sa/
33+
34+
Compile this sample for the `adafruit_grand_central_m4_express` board with
35+
36+
west build -b adafruit_grand_central_m4_express -p always bacnet/zephyr/samples/profiles/b-ld/
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
/*
2+
* Copyright (c) 2020 Google LLC.
3+
* Copyright (c) 2024 Daikin Comfort Technologies North America, Inc.
4+
*
5+
* SPDX-License-Identifier: Apache-2.0
6+
*/
7+
&flash0 {
8+
partitions {
9+
compatible = "fixed-partitions";
10+
#address-cells = <1>;
11+
#size-cells = <1>;
12+
13+
boot_partition: partition@0 {
14+
label = "uf2";
15+
reg = <0x00000000 DT_SIZE_K(16)>;
16+
read-only;
17+
};
18+
19+
code_partition: partition@4000 {
20+
label = "code";
21+
reg = <0x4000 DT_SIZE_K(512-16-16)>;
22+
read-only;
23+
};
24+
25+
/*
26+
* The final 16 KiB is reserved for the application.
27+
* Storage partition will be used by FCB/LittleFS/NVS
28+
* if enabled.
29+
*/
30+
storage_partition: partition@7c000 {
31+
label = "storage";
32+
reg = <0x7c000 DT_SIZE_K(16)>;
33+
};
34+
};
35+
};

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

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,17 @@ Building and Running
2020
This sample can be found under :bacnet_file:`samples/profiles/b-ss` 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-ss/
29+
30+
Compile this sample for the `rpi_pico` board:
31+
32+
west build -b rpi_pico -p always bacnet/zephyr/samples/profiles/b-ss/
33+
34+
Compile this sample for the `adafruit_grand_central_m4_express` board with
35+
36+
west build -b adafruit_grand_central_m4_express -p always bacnet/zephyr/samples/profiles/b-ld/
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
/*
2+
* Copyright (c) 2020 Google LLC.
3+
* Copyright (c) 2024 Daikin Comfort Technologies North America, Inc.
4+
*
5+
* SPDX-License-Identifier: Apache-2.0
6+
*/
7+
&flash0 {
8+
partitions {
9+
compatible = "fixed-partitions";
10+
#address-cells = <1>;
11+
#size-cells = <1>;
12+
13+
boot_partition: partition@0 {
14+
label = "uf2";
15+
reg = <0x00000000 DT_SIZE_K(16)>;
16+
read-only;
17+
};
18+
19+
code_partition: partition@4000 {
20+
label = "code";
21+
reg = <0x4000 DT_SIZE_K(512-16-16)>;
22+
read-only;
23+
};
24+
25+
/*
26+
* The final 16 KiB is reserved for the application.
27+
* Storage partition will be used by FCB/LittleFS/NVS
28+
* if enabled.
29+
*/
30+
storage_partition: partition@7c000 {
31+
label = "storage";
32+
reg = <0x7c000 DT_SIZE_K(16)>;
33+
};
34+
};
35+
};

0 commit comments

Comments
 (0)