diff --git a/examples/zephyr/Makefile b/examples/zephyr/Makefile index 4bd5b3e1..01b06809 100644 --- a/examples/zephyr/Makefile +++ b/examples/zephyr/Makefile @@ -7,3 +7,6 @@ example: build: cp ../../mongoose.c ../../mongoose.h http-server/src/ cd $(ZEPHYR_DIR) && west build -b nucleo_f746zg -p auto $(CWD)/http-server + +flash: + cd $(ZEPHYR_DIR) && west flash diff --git a/examples/zephyr/http-server/prj.conf b/examples/zephyr/http-server/prj.conf index d6d84d98..1193d7d0 100644 --- a/examples/zephyr/http-server/prj.conf +++ b/examples/zephyr/http-server/prj.conf @@ -1,19 +1,19 @@ -# networking CONFIG_NETWORKING=y CONFIG_NET_IPV4=y -# CONFIG_NET_IPV6 is not set +CONFIG_NET_IPV6=y CONFIG_NET_TCP=y +CONFIG_NET_UDP=y +CONFIG_NET_DHCPV4=y CONFIG_NET_SOCKETS=y -CONFIG_MINIMAL_LIBC_MALLOC_ARENA_SIZE=16384 -CONFIG_NET_TX_STACK_SIZE=2048 -CONFIG_NET_RX_STACK_SIZE=2048 +CONFIG_MINIMAL_LIBC_MALLOC_ARENA_SIZE=32756 +CONFIG_NET_LOG=y +CONFIG_LOG=y +#CONFIG_NET_TX_STACK_SIZE=2048 +#CONFIG_NET_RX_STACK_SIZE=2048 CONFIG_ISR_STACK_SIZE=2048 -CONFIG_MAIN_STACK_SIZE=2048 +CONFIG_MAIN_STACK_SIZE=8192 CONFIG_IDLE_STACK_SIZE=1024 CONFIG_NET_CONFIG_SETTINGS=y -#CONFIG_NET_CONFIG_MY_IPV4_ADDR="192.0.2.1" -#CONFIG_NET_CONFIG_MY_IPV4_NETMASK="255.255.255.0" -#CONFIG_NET_CONFIG_MY_IPV4_GW="192.0.2.2" -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" +#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"