Skip to content

Commit 8dd852d

Browse files
KaSrokaAnas Nashif
authored andcommitted
samples: net: Add config and enable CI for OpenThread on nRF52840
Add samples config for nRF52840 with OpenThread for echo_client and echo_server. Add OpenThread to CI for echo_client and echo_server on nRF52840 Signed-off-by: Kamil Sroka <[email protected]>
1 parent 95cb365 commit 8dd852d

File tree

4 files changed

+104
-0
lines changed

4 files changed

+104
-0
lines changed
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
CONFIG_CPLUSPLUS=y
2+
3+
CONFIG_SYS_CLOCK_TICKS_PER_SEC=1000
4+
5+
CONFIG_BT=n
6+
7+
CONFIG_NETWORKING=y
8+
CONFIG_ENTROPY_GENERATOR=y
9+
CONFIG_ENTROPY_NRF5_RNG=y
10+
11+
CONFIG_NET_PKT_RX_COUNT=50
12+
CONFIG_NET_PKT_TX_COUNT=50
13+
CONFIG_NET_BUF_RX_COUNT=50
14+
CONFIG_NET_BUF_TX_COUNT=50
15+
16+
CONFIG_NET_TX_STACK_SIZE=2048
17+
CONFIG_NET_RX_STACK_SIZE=3072
18+
19+
CONFIG_NET_IPV4=n
20+
CONFIG_NET_IPV6=y
21+
CONFIG_NET_IF_UNICAST_IPV6_ADDR_COUNT=10
22+
CONFIG_NET_IPV6_NBR_CACHE=n
23+
CONFIG_NET_IPV6_MLD=n
24+
25+
CONFIG_REBOOT=y
26+
27+
CONFIG_NET_LOG=y
28+
CONFIG_SYS_LOG_SHOW_COLOR=y
29+
CONFIG_PRINTK=y
30+
31+
CONFIG_UART_INTERRUPT_DRIVEN=y
32+
33+
CONFIG_FLASH=y
34+
CONFIG_SOC_FLASH_NRF5=y
35+
CONFIG_FLASH_PAGE_LAYOUT=y
36+
CONFIG_MPU_ALLOW_FLASH_WRITE=y
37+
38+
CONFIG_NET_L2_OPENTHREAD=y
39+
CONFIG_OPENTHREAD_L2_DEBUG=y
40+
CONFIG_OPENTHREAD_L2_LOG_LEVEL_INFO=y
41+
CONFIG_OPENTHREAD_CHANNEL=13
42+
CONFIG_IEEE802154_NRF5=y
43+
44+
CONFIG_NET_APP=y
45+
CONFIG_NET_APP_NEED_IPV6=y
46+
CONFIG_NET_APP_CLIENT=y
47+
CONFIG_NET_APP_SETTINGS=y
48+
CONFIG_NET_APP_MY_IPV6_ADDR="fdde:ad00:beef::1"
49+
CONFIG_NET_APP_PEER_IPV6_ADDR="fdde:ad00:beef::2"

samples/net/echo_client/sample.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,6 @@ tests:
1919
test_cc2520:
2020
extra_args: CONF_FILE="prj_frdm_k64f_cc2520.conf"
2121
platform_whitelist: frdm_k64f
22+
test_openthread:
23+
extra_args: CONF_FILE="prj_nrf52840_ot.conf"
24+
platform_whitelist: nrf52840_pca10056
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
CONFIG_CPLUSPLUS=y
2+
3+
CONFIG_SYS_CLOCK_TICKS_PER_SEC=1000
4+
5+
CONFIG_BT=n
6+
7+
CONFIG_NETWORKING=y
8+
CONFIG_ENTROPY_GENERATOR=y
9+
CONFIG_ENTROPY_NRF5_RNG=y
10+
11+
CONFIG_NET_PKT_RX_COUNT=50
12+
CONFIG_NET_PKT_TX_COUNT=50
13+
CONFIG_NET_BUF_RX_COUNT=50
14+
CONFIG_NET_BUF_TX_COUNT=50
15+
16+
CONFIG_NET_TX_STACK_SIZE=2048
17+
CONFIG_NET_RX_STACK_SIZE=3072
18+
19+
CONFIG_NET_IPV4=n
20+
CONFIG_NET_IPV6=y
21+
CONFIG_NET_IF_UNICAST_IPV6_ADDR_COUNT=10
22+
CONFIG_NET_IPV6_NBR_CACHE=n
23+
CONFIG_NET_IPV6_MLD=n
24+
25+
CONFIG_REBOOT=y
26+
27+
CONFIG_NET_LOG=y
28+
CONFIG_SYS_LOG_SHOW_COLOR=y
29+
CONFIG_PRINTK=y
30+
31+
CONFIG_UART_INTERRUPT_DRIVEN=y
32+
33+
CONFIG_FLASH=y
34+
CONFIG_SOC_FLASH_NRF5=y
35+
CONFIG_FLASH_PAGE_LAYOUT=y
36+
CONFIG_MPU_ALLOW_FLASH_WRITE=y
37+
38+
CONFIG_IEEE802154_NRF5=y
39+
CONFIG_NET_L2_OPENTHREAD=y
40+
CONFIG_OPENTHREAD_L2_DEBUG=y
41+
CONFIG_OPENTHREAD_L2_LOG_LEVEL_INFO=y
42+
CONFIG_OPENTHREAD_CHANNEL=13
43+
44+
CONFIG_NET_APP=y
45+
CONFIG_NET_APP_NEED_IPV6=y
46+
CONFIG_NET_APP_SERVER=y
47+
CONFIG_NET_APP_SETTINGS=y
48+
CONFIG_NET_APP_MY_IPV6_ADDR="fdde:ad00:beef::2"
49+
CONFIG_NET_APP_PEER_IPV6_ADDR="fdde:ad00:beef::1"

samples/net/echo_server/sample.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,3 +39,6 @@ tests:
3939
- CONFIG_USB_DEVICE_PID=0xBEEF
4040
platform_whitelist: quark_se_c1000_devboard 96b_carbon
4141
tags: net usb
42+
test_openthread:
43+
extra_args: CONF_FILE="prj_nrf52840_ot.conf"
44+
platform_whitelist: nrf52840_pca10056

0 commit comments

Comments
 (0)