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 <kamil.sroka@nordicsemi.no>
This commit is contained in:
parent
95cb365fae
commit
8dd852dc92
4 changed files with 104 additions and 0 deletions
49
samples/net/echo_client/prj_nrf52840_ot.conf
Normal file
49
samples/net/echo_client/prj_nrf52840_ot.conf
Normal file
|
@ -0,0 +1,49 @@
|
|||
CONFIG_CPLUSPLUS=y
|
||||
|
||||
CONFIG_SYS_CLOCK_TICKS_PER_SEC=1000
|
||||
|
||||
CONFIG_BT=n
|
||||
|
||||
CONFIG_NETWORKING=y
|
||||
CONFIG_ENTROPY_GENERATOR=y
|
||||
CONFIG_ENTROPY_NRF5_RNG=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_IPV4=n
|
||||
CONFIG_NET_IPV6=y
|
||||
CONFIG_NET_IF_UNICAST_IPV6_ADDR_COUNT=10
|
||||
CONFIG_NET_IPV6_NBR_CACHE=n
|
||||
CONFIG_NET_IPV6_MLD=n
|
||||
|
||||
CONFIG_REBOOT=y
|
||||
|
||||
CONFIG_NET_LOG=y
|
||||
CONFIG_SYS_LOG_SHOW_COLOR=y
|
||||
CONFIG_PRINTK=y
|
||||
|
||||
CONFIG_UART_INTERRUPT_DRIVEN=y
|
||||
|
||||
CONFIG_FLASH=y
|
||||
CONFIG_SOC_FLASH_NRF5=y
|
||||
CONFIG_FLASH_PAGE_LAYOUT=y
|
||||
CONFIG_MPU_ALLOW_FLASH_WRITE=y
|
||||
|
||||
CONFIG_NET_L2_OPENTHREAD=y
|
||||
CONFIG_OPENTHREAD_L2_DEBUG=y
|
||||
CONFIG_OPENTHREAD_L2_LOG_LEVEL_INFO=y
|
||||
CONFIG_OPENTHREAD_CHANNEL=13
|
||||
CONFIG_IEEE802154_NRF5=y
|
||||
|
||||
CONFIG_NET_APP=y
|
||||
CONFIG_NET_APP_NEED_IPV6=y
|
||||
CONFIG_NET_APP_CLIENT=y
|
||||
CONFIG_NET_APP_SETTINGS=y
|
||||
CONFIG_NET_APP_MY_IPV6_ADDR="fdde:ad00:beef::1"
|
||||
CONFIG_NET_APP_PEER_IPV6_ADDR="fdde:ad00:beef::2"
|
|
@ -19,3 +19,6 @@ tests:
|
|||
test_cc2520:
|
||||
extra_args: CONF_FILE="prj_frdm_k64f_cc2520.conf"
|
||||
platform_whitelist: frdm_k64f
|
||||
test_openthread:
|
||||
extra_args: CONF_FILE="prj_nrf52840_ot.conf"
|
||||
platform_whitelist: nrf52840_pca10056
|
49
samples/net/echo_server/prj_nrf52840_ot.conf
Normal file
49
samples/net/echo_server/prj_nrf52840_ot.conf
Normal file
|
@ -0,0 +1,49 @@
|
|||
CONFIG_CPLUSPLUS=y
|
||||
|
||||
CONFIG_SYS_CLOCK_TICKS_PER_SEC=1000
|
||||
|
||||
CONFIG_BT=n
|
||||
|
||||
CONFIG_NETWORKING=y
|
||||
CONFIG_ENTROPY_GENERATOR=y
|
||||
CONFIG_ENTROPY_NRF5_RNG=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_IPV4=n
|
||||
CONFIG_NET_IPV6=y
|
||||
CONFIG_NET_IF_UNICAST_IPV6_ADDR_COUNT=10
|
||||
CONFIG_NET_IPV6_NBR_CACHE=n
|
||||
CONFIG_NET_IPV6_MLD=n
|
||||
|
||||
CONFIG_REBOOT=y
|
||||
|
||||
CONFIG_NET_LOG=y
|
||||
CONFIG_SYS_LOG_SHOW_COLOR=y
|
||||
CONFIG_PRINTK=y
|
||||
|
||||
CONFIG_UART_INTERRUPT_DRIVEN=y
|
||||
|
||||
CONFIG_FLASH=y
|
||||
CONFIG_SOC_FLASH_NRF5=y
|
||||
CONFIG_FLASH_PAGE_LAYOUT=y
|
||||
CONFIG_MPU_ALLOW_FLASH_WRITE=y
|
||||
|
||||
CONFIG_IEEE802154_NRF5=y
|
||||
CONFIG_NET_L2_OPENTHREAD=y
|
||||
CONFIG_OPENTHREAD_L2_DEBUG=y
|
||||
CONFIG_OPENTHREAD_L2_LOG_LEVEL_INFO=y
|
||||
CONFIG_OPENTHREAD_CHANNEL=13
|
||||
|
||||
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="fdde:ad00:beef::2"
|
||||
CONFIG_NET_APP_PEER_IPV6_ADDR="fdde:ad00:beef::1"
|
|
@ -39,3 +39,6 @@ tests:
|
|||
- CONFIG_USB_DEVICE_PID=0xBEEF
|
||||
platform_whitelist: quark_se_c1000_devboard 96b_carbon
|
||||
tags: net usb
|
||||
test_openthread:
|
||||
extra_args: CONF_FILE="prj_nrf52840_ot.conf"
|
||||
platform_whitelist: nrf52840_pca10056
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue