-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathprj.conf
More file actions
163 lines (127 loc) · 4.73 KB
/
Copy pathprj.conf
File metadata and controls
163 lines (127 loc) · 4.73 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
#
# Copyright (c) 2022 Nordic Semiconductor ASA
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
#
# nRF7002 DK TCP/UDP BSD sockets example
#
# This file is intended to be safe for a public GitHub repository.
# Do not commit real Wi-Fi credentials, production IP addresses or private
# network information to a public repository.
#
# ==============================================================================
# Wi-Fi support
# ==============================================================================
CONFIG_WIFI=y
CONFIG_WIFI_NRF700X=y
# WPA supplicant support.
CONFIG_WPA_SUPP=y
# ==============================================================================
# Wi-Fi station credentials
# ==============================================================================
#
# Replace these placeholders in your local development environment.
#
# Recommended options:
# 1. Keep public placeholder values in this file.
# 2. Store real credentials in a local overlay file that is ignored by Git.
# 3. Never commit customer, office or production Wi-Fi credentials.
#
CONFIG_STA_SAMPLE_SSID="YOUR_WIFI_SSID"
CONFIG_STA_SAMPLE_PASSWORD="YOUR_WIFI_PASSWORD"
# Select the Wi-Fi security mode used by your router.
# Enable only one of the following options.
# CONFIG_STA_KEY_MGMT_NONE=y
CONFIG_STA_KEY_MGMT_WPA2=y
# CONFIG_STA_KEY_MGMT_WPA2_256=y
# CONFIG_STA_KEY_MGMT_WPA3=y
# ==============================================================================
# Remote peer configuration
# ==============================================================================
#
# IP address of the PC, server or embedded device that receives the packets sent
# by the TCP client and UDP client examples.
#
# Example:
# - Board IP assigned by DHCP: 192.168.1.99
# - PC/server IP address: 192.168.1.201
#
CONFIG_NET_CONFIG_PEER_IPV4_ADDR="192.168.1.201"
# ==============================================================================
# IPv4 configuration
# ==============================================================================
#
# DHCP is enabled by default. The router assigns the board IPv4 address.
#
CONFIG_NET_DHCPV4=y
# Static IPv4 example.
# Disable DHCP before using these options.
#
# CONFIG_NET_DHCPV4=n
# CONFIG_NET_CONFIG_MY_IPV4_ADDR="192.168.1.99"
# CONFIG_NET_CONFIG_MY_IPV4_NETMASK="255.255.255.0"
# CONFIG_NET_CONFIG_MY_IPV4_GW="192.168.1.1"
# ==============================================================================
# System settings
# ==============================================================================
CONFIG_NEWLIB_LIBC=y
CONFIG_NEWLIB_LIBC_NANO=n
CONFIG_THREAD_NAME=y
# ==============================================================================
# Networking
# ==============================================================================
CONFIG_NETWORKING=y
CONFIG_NET_SOCKETS=y
CONFIG_NET_SOCKETS_POSIX_NAMES=y
CONFIG_NET_IPV4=y
CONFIG_NET_UDP=y
CONFIG_NET_TCP=y
CONFIG_NET_LOG=y
CONFIG_NET_L2_ETHERNET=y
CONFIG_NET_CONFIG_SETTINGS=y
CONFIG_NET_PKT_RX_COUNT=16
CONFIG_NET_PKT_TX_COUNT=16
CONFIG_NET_MAX_CONN=10
# This section is the primary contributor to SRAM usage.
# The values below are tuned for socket performance in this example.
CONFIG_NET_BUF_RX_COUNT=80
CONFIG_NET_BUF_TX_COUNT=80
CONFIG_NET_CONTEXT_NET_PKT_POOL=y
CONFIG_NET_BUF_DATA_SIZE=128
CONFIG_HEAP_MEM_POOL_SIZE=183600
CONFIG_NET_TC_TX_COUNT=4
CONFIG_NET_IF_UNICAST_IPV4_ADDR_COUNT=1
CONFIG_NET_MAX_CONTEXTS=20
CONFIG_NET_CONTEXT_SYNC_RECV=y
CONFIG_NET_SOCKETS_POLL_MAX=20
CONFIG_POSIX_MAX_FDS=20
# ==============================================================================
# Stack sizes
# ==============================================================================
CONFIG_MAIN_STACK_SIZE=4096
CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=2048
CONFIG_NET_TX_STACK_SIZE=4096
CONFIG_NET_RX_STACK_SIZE=4096
# ==============================================================================
# Kernel and runtime options
# ==============================================================================
CONFIG_INIT_STACKS=y
CONFIG_ENTROPY_GENERATOR=y
CONFIG_TEST_RANDOM_GENERATOR=y
CONFIG_POSIX_CLOCK=y
CONFIG_PM=y
# ==============================================================================
# Logging and debugging
# ==============================================================================
CONFIG_LOG=y
CONFIG_LOG_BUFFER_SIZE=2048
CONFIG_STACK_SENTINEL=y
CONFIG_DEBUG_COREDUMP=y
CONFIG_DEBUG_COREDUMP_BACKEND_LOGGING=y
CONFIG_DEBUG_COREDUMP_MEMORY_DUMP_MIN=y
CONFIG_SHELL_CMDS_RESIZE=n
# Printing scan results can put pressure on queues in crowded RF environments.
# Use a higher event queue timeout.
CONFIG_NET_MGMT_EVENT_QUEUE_TIMEOUT=5000
# Enable debug logs for this example.
# Disable this in production builds if you need lower memory usage or less output.
CONFIG_DEBUG=y