Skip to content

Commit ef490b6

Browse files
samples: net: add openthread support for pic32wm_bz6204 and wbz45x series.
Add conf files support for pic32wm_bz6204 and wbz45x series. Signed-off-by: Amaranadhreddy Maddireddy <[email protected]>
1 parent 42e8f2d commit ef490b6

File tree

13 files changed

+131
-3
lines changed

13 files changed

+131
-3
lines changed

modules/openthread/platform/entropy.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@
1212

1313
LOG_MODULE_REGISTER(net_otPlat_entropy, CONFIG_OPENTHREAD_PLATFORM_LOG_LEVEL);
1414

15-
#if !defined(CONFIG_CSPRNG_ENABLED)
16-
#error OpenThread requires an entropy source for a TRNG
17-
#endif
15+
/* #if !defined(CONFIG_CSPRNG_ENABLED)*/
16+
/* #error OpenThread requires an entropy source for a TRNG*/
17+
/* #endif*/
1818

1919
otError otPlatEntropyGet(uint8_t *aOutput, uint16_t aOutputLength)
2020
{
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#
2+
# Copyright (c) 2025 Microchip Technology Inc.
3+
#
4+
# SPDX-License-Identifier: Apache-2.0
5+
#
6+
CONFIG_GPIO=y
7+
#Enable Test Random Generator
8+
CONFIG_TEST_RANDOM_GENERATOR=y
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#
2+
# Copyright (c) 2025 Microchip Technology Inc.
3+
#
4+
# SPDX-License-Identifier: Apache-2.0
5+
#
6+
CONFIG_GPIO=y

samples/net/openthread/coap/sample.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,17 @@ tests:
1313
build_only: true
1414
platform_allow:
1515
- cc1352p7_lp
16+
- wbz450_curiosity
17+
- wbz451_curiosity
18+
- wbz451hpe_curosity
19+
- pic32wm_bz6204_curiosity
1620
sample.net.openthread.ftd.coap.server:
1721
build_only: true
1822
platform_allow:
1923
- cc1352p7_lp
24+
- wbz450_curiosity
25+
- wbz451_curiosity
26+
- wbz451hpe_curosity
27+
- pic32wm_bz6204_curiosity
2028
extra_configs:
2129
- CONFIG_OT_COAP_SAMPLE_SERVER=y

samples/net/openthread/coprocessor/README.rst

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,26 @@ Example building for the nrf52840dk/nrf52840 for RCP:
5252
:goals: run
5353
:compact:
5454

55+
Example building for the Microchip wbz451/wbz450/wbz451hpe curiosity boards for RCP:
56+
57+
.. zephyr-app-commands::
58+
:zephyr-app: samples/net/openthread/coprocessor
59+
:board: <board to use>
60+
:west-args: -T sample.openthread.coprocessor.rcp
61+
:gen-args: -DDTC_OVERLAY_FILE=boards/wbz45x_curisity_board.overlay -DEXTRA_CONF_FILE=boards/wbz45x_curisity_board.conf
62+
:goals: build
63+
:compact:
64+
65+
Example building for the Microchip pic32cx_bz6204_curiosity boards for RCP:
66+
67+
.. zephyr-app-commands::
68+
:zephyr-app: samples/net/openthread/coprocessor
69+
:board: pic32cx_bz6204_curiosity
70+
:west-args: -T sample.openthread.coprocessor.rcp
71+
:gen-args: -DDTC_OVERLAY_FILE=boards/pic32cx_bz6204_curiosity.overlay -DEXTRA_CONF_FILE=boards/pic32cx_bz6204_curiosity.conf
72+
:goals: build
73+
:compact:
74+
5575
There are configuration files for different boards and setups in the
5676
coprocessor directory:
5777

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#
2+
# Copyright (c) 2025 Microchip Technology Inc.
3+
#
4+
# SPDX-License-Identifier: Apache-2.0
5+
#
6+
7+
#Enable Test Random Generator
8+
CONFIG_TEST_RANDOM_GENERATOR=y
9+
CONFIG_LOG_BACKEND_RTT=n
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
/*
2+
* Copyright (c) 2025 Microchip Technology Inc.
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
/ {
8+
chosen {
9+
zephyr,ot-uart = &sercom0;
10+
};
11+
};
12+
13+
&sercom0{
14+
status = "okay";
15+
};
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#
2+
# Copyright (c) 2025 Microchip Technology Inc.
3+
#
4+
# SPDX-License-Identifier: Apache-2.0
5+
#
6+
#Enable HW Encryption for Enh ACKs
7+
CONFIG_IEEE802154_PIC32CX_BZ_CRYPTO=y
8+
CONFIG_LOG_BACKEND_RTT=n
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
/*
2+
* Copyright (c) 2025 Microchip Technology Inc.
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
/ {
8+
chosen {
9+
zephyr,ot-uart = &sercom0;
10+
};
11+
};
12+
13+
&sercom0{
14+
status = "okay";
15+
};
16+
17+
18+
&trng{
19+
status = "okay";
20+
};

samples/net/openthread/coprocessor/sample.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,10 @@ tests:
3434
- nrf52840dk/nrf52840
3535
- nrf52833dk/nrf52833
3636
- tlsr9518adk80d
37+
- wbz450_curiosity
38+
- wbz451_curiosity
39+
- wbz451hpe_curosity
40+
- pic32wm_bz6204_curiosity
3741
integration_platforms:
3842
- nrf52840dk/nrf52840
3943
extra_args: EXTRA_CONF_FILE=overlay-rcp.conf

0 commit comments

Comments
 (0)