Skip to content

Commit

Permalink
openthread: kw41z: Adding echo/server project config files for KW41Z OT
Browse files Browse the repository at this point in the history
- Added example OpenThread projects for KW41Z in echo/server samples
- Added projects to sample.yaml for sanity testing

Signed-off-by: David Leach <[email protected]>
  • Loading branch information
dleach02 authored and jukkar committed Apr 11, 2018
1 parent 00885bb commit 292033c
Show file tree
Hide file tree
Showing 4 changed files with 141 additions and 5 deletions.
62 changes: 62 additions & 0 deletions samples/net/echo_client/prj_frdm_kw41z_ot.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
CONFIG_RTT_CONSOLE=n
CONFIG_HAS_SEGGER_RTT=n
#CONFIG_OPENOCD_SUPPORT=y

CONFIG_BOOT_BANNER=y

CONFIG_STACK_SENTINEL=y
CONFIG_THREAD_MONITOR=y
CONFIG_OBJECT_TRACING=y
CONFIG_KERNEL_SHELL=y

CONFIG_MAIN_STACK_SIZE=2048
CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=2048
CONFIG_NET_TX_STACK_SIZE=2048
CONFIG_NET_RX_STACK_SIZE=3072


CONFIG_NETWORKING=y

CONFIG_NET_BUF_RX_COUNT=96
CONFIG_NET_BUF_TX_COUNT=64

CONFIG_NET_IPV6=y
CONFIG_NET_IPV4=n

CONFIG_NET_BUF_LOG=y
CONFIG_SYS_LOG_NET_BUF_LEVEL=3

CONFIG_NET_LOG=y
CONFIG_SYS_LOG_NET_LEVEL=2

CONFIG_SYS_LOG_SHOW_COLOR=y
CONFIG_INIT_STACKS=y

# OpenThread configuration
CONFIG_NET_L2_OPENTHREAD=y

CONFIG_OPENTHREAD_DEBUG=y
CONFIG_OPENTHREAD_L2_DEBUG=y
CONFIG_OPENTHREAD_L2_LOG_LEVEL_INFO=y
CONFIG_OPENTHREAD_LOG_LEVEL_INFO=y

CONFIG_FLASH=y
CONFIG_FLASH_PAGE_LAYOUT=y
CONFIG_CPLUSPLUS=y
CONFIG_REBOOT=y

CONFIG_OPENTHREAD_CHANNEL=26

CONFIG_NET_IPV6_NBR_CACHE=n
CONFIG_NET_IPV6_MLD=n
CONFIG_NET_APP_NEED_IPV6=y

CONFIG_IEEE802154_KW41Z=y
CONFIG_SYS_LOG_IEEE802154_DRIVER_LEVEL=3
# End of OpenThread coniguration


CONFIG_NET_APP_CLIENT=y
CONFIG_NET_APP_SETTINGS=y
CONFIG_NET_APP_MY_IPV6_ADDR="2001:db8::1"
CONFIG_NET_APP_PEER_IPV6_ADDR="2001:db8::2"
12 changes: 9 additions & 3 deletions samples/net/echo_client/sample.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ sample:
tests:
test:
platform_whitelist: qemu_x86 frdm_k64f sam_e70_xplained
qemu_cortex_m3 arduino_101
qemu_cortex_m3 arduino_101 frdm_kw41z
test_802154:
extra_args: CONF_FILE="prj_qemu_802154.conf"
platform_whitelist: qemu_x86
Expand All @@ -19,6 +19,12 @@ tests:
test_cc2520:
extra_args: CONF_FILE="prj_frdm_k64f_cc2520.conf"
platform_whitelist: frdm_k64f
test_openthread:
test_nrf_openthread:
extra_args: CONF_FILE="prj_nrf52840_ot.conf"
platform_whitelist: nrf52840_pca10056
platform_whitelist: nrf52840_pca10056
test_kw41z:
extra_args: CONF_FILE="prj_frdm_kw41z.conf"
platform_whitelist: frdm_kw41z
test_kw41z_openthread:
extra_args: CONF_FILE="prj_frdm_kw41z_ot.conf"
platform_whitelist: frdm_kw41z
62 changes: 62 additions & 0 deletions samples/net/echo_server/prj_frdm_kw41z_ot.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
CONFIG_UART_CONSOLE=y
CONFIG_RTT_CONSOLE=n
CONFIG_HAS_SEGGER_RTT=n
CONFIG_BOOT_BANNER=y

CONFIG_STACK_SENTINEL=y
CONFIG_THREAD_MONITOR=y
CONFIG_OBJECT_TRACING=y
CONFIG_KERNEL_SHELL=y


CONFIG_NETWORKING=y

CONFIG_NET_PKT_RX_COUNT=50
CONFIG_NET_PKT_TX_COUNT=50
CONFIG_NET_BUF_RX_COUNT=50
CONFIG_NET_BUF_TX_COUNT=50

CONFIG_NET_TX_STACK_SIZE=2048
CONFIG_NET_RX_STACK_SIZE=3072

CONFIG_NET_IPV6=y
CONFIG_NET_IPV4=n

CONFIG_NET_BUF_LOG=y
CONFIG_SYS_LOG_NET_BUF_LEVEL=3

CONFIG_NET_LOG=y
CONFIG_SYS_LOG_NET_LEVEL=2

CONFIG_SYS_LOG_SHOW_COLOR=y
CONFIG_INIT_STACKS=y

# OpenThread configuration
CONFIG_NET_L2_OPENTHREAD=y

CONFIG_OPENTHREAD_DEBUG=y
CONFIG_OPENTHREAD_L2_DEBUG=y
CONFIG_OPENTHREAD_L2_LOG_LEVEL_INFO=y
CONFIG_OPENTHREAD_LOG_LEVEL_INFO=y

CONFIG_FLASH=y
CONFIG_FLASH_PAGE_LAYOUT=y
CONFIG_CPLUSPLUS=y
CONFIG_REBOOT=y

CONFIG_OPENTHREAD_CHANNEL=26

CONFIG_NET_IPV6_NBR_CACHE=n
CONFIG_NET_IPV6_MLD=n
CONFIG_NET_APP_NEED_IPV6=y

CONFIG_IEEE802154_KW41Z=y
CONFIG_SYS_LOG_IEEE802154_DRIVER_LEVEL=3
# End of OpenThread coniguration

CONFIG_NET_APP=y
CONFIG_NET_APP_NEED_IPV6=y
CONFIG_NET_APP_SERVER=y
CONFIG_NET_APP_SETTINGS=y
CONFIG_NET_APP_MY_IPV6_ADDR="2001:db8::2"
CONFIG_NET_APP_PEER_IPV6_ADDR="2001:db8::1"
10 changes: 8 additions & 2 deletions samples/net/echo_server/sample.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ sample:
tests:
test:
platform_whitelist: qemu_x86 sam_e70_xplained frdm_k64f
qemu_cortex_m3 arduino_101
qemu_cortex_m3 arduino_101 frdm_kw41z
test_802154:
extra_args: CONF_FILE="prj_qemu_802154.conf"
platform_whitelist: qemu_x86
Expand All @@ -34,6 +34,12 @@ tests:
- CONFIG_USB_COMPOSITE_DEVICE=y
platform_whitelist: quark_se_c1000_devboard 96b_carbon
tags: net usb
test_openthread:
test_nrf_openthread:
extra_args: CONF_FILE="prj_nrf52840_ot.conf"
platform_whitelist: nrf52840_pca10056
test_kw41z:
extra_args: CONF_FILE="prj_frdm_kw41z.conf"
platform_whitelist: frdm_kw41z
test_kw41z_openthread:
extra_args: CONF_FILE="prj_frdm_kw41z_ot.conf"
platform_whitelist: frdm_kw41z

0 comments on commit 292033c

Please sign in to comment.