Enable DHCP

This commit is contained in:
Sergey Lyubka 2022-03-31 17:26:58 +01:00
parent bb0bc41f99
commit 84fe1d87b3
2 changed files with 15 additions and 12 deletions

View File

@ -7,3 +7,6 @@ example:
build: build:
cp ../../mongoose.c ../../mongoose.h http-server/src/ cp ../../mongoose.c ../../mongoose.h http-server/src/
cd $(ZEPHYR_DIR) && west build -b nucleo_f746zg -p auto $(CWD)/http-server cd $(ZEPHYR_DIR) && west build -b nucleo_f746zg -p auto $(CWD)/http-server
flash:
cd $(ZEPHYR_DIR) && west flash

View File

@ -1,19 +1,19 @@
# networking
CONFIG_NETWORKING=y CONFIG_NETWORKING=y
CONFIG_NET_IPV4=y CONFIG_NET_IPV4=y
# CONFIG_NET_IPV6 is not set CONFIG_NET_IPV6=y
CONFIG_NET_TCP=y CONFIG_NET_TCP=y
CONFIG_NET_UDP=y
CONFIG_NET_DHCPV4=y
CONFIG_NET_SOCKETS=y CONFIG_NET_SOCKETS=y
CONFIG_MINIMAL_LIBC_MALLOC_ARENA_SIZE=16384 CONFIG_MINIMAL_LIBC_MALLOC_ARENA_SIZE=32756
CONFIG_NET_TX_STACK_SIZE=2048 CONFIG_NET_LOG=y
CONFIG_NET_RX_STACK_SIZE=2048 CONFIG_LOG=y
#CONFIG_NET_TX_STACK_SIZE=2048
#CONFIG_NET_RX_STACK_SIZE=2048
CONFIG_ISR_STACK_SIZE=2048 CONFIG_ISR_STACK_SIZE=2048
CONFIG_MAIN_STACK_SIZE=2048 CONFIG_MAIN_STACK_SIZE=8192
CONFIG_IDLE_STACK_SIZE=1024 CONFIG_IDLE_STACK_SIZE=1024
CONFIG_NET_CONFIG_SETTINGS=y CONFIG_NET_CONFIG_SETTINGS=y
#CONFIG_NET_CONFIG_MY_IPV4_ADDR="192.0.2.1" #CONFIG_NET_CONFIG_MY_IPV4_ADDR="169.254.240.10"
#CONFIG_NET_CONFIG_MY_IPV4_NETMASK="255.255.255.0" #CONFIG_NET_CONFIG_MY_IPV4_NETMASK="255.255.0.0"
#CONFIG_NET_CONFIG_MY_IPV4_GW="192.0.2.2" #CONFIG_NET_CONFIG_MY_IPV4_GW="169.254.240.5"
CONFIG_NET_CONFIG_MY_IPV4_ADDR="169.254.240.10"
CONFIG_NET_CONFIG_MY_IPV4_NETMASK="255.255.0.0"
CONFIG_NET_CONFIG_MY_IPV4_GW="169.254.240.5"