-
Notifications
You must be signed in to change notification settings - Fork 7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
samples: net: echo_server/client: Decrease SRAM usage for atsamr21_xpro #65781
samples: net: echo_server/client: Decrease SRAM usage for atsamr21_xpro #65781
Conversation
CONFIG_LOG_MODE_MINIMAL=y | ||
CONFIG_NET_IP_DSCP_ECN=n | ||
CONFIG_NET_STATISTICS=n | ||
CONFIG_NET_MGMT_EVENT_STACK_SIZE=384 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks too very low, but might work ok. Note that there is CONFIG_NET_DEBUG_MGMT_EVENT_STACK
option which prints stack usage after each event, and that can be used to verify the numbers.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This board have been on limit since 2.7 and I'm constantly reducing something. Besides that still running : )
*** Booting Zephyr OS build zephyr-v3.5.0-5222-g03772eb0d806 ***
uart:~$ I: Initializing network
I: IPv6 address: 2001:db8::1
I: Run echo server
I: Network connected
I: Starting...
I: Waiting for UDP packets on port 4242 (IPv6)...
D: (udp6): UDP (IPv6): Received and replied with 21 bytes
D: (udp6): UDP (IPv6): Received and replied with 46 bytes
D: (udp6): UDP (IPv6): Received and replied with 12 bytes
D: (udp6): UDP (IPv6): Received and replied with 54 bytes
D: (udp6): UDP (IPv6): Received and replied with 84 bytes
D: (udp6): UDP (IPv6): Received and replied with 46 bytes
D: (udp6): UDP (IPv6): Received and replied with 65 bytes
D: (udp6): UDP (IPv6): Received and replied with 3 bytes
D: (udp6): UDP (IPv6): Received and replied with 116 bytes
D: (udp6): UDP (IPv6): Received and replied with 24 bytes
D: (udp6): UDP (IPv6): Received and replied with 95 bytes
D: (udp6): UDP (IPv6): Received and replied with 25 bytes
D: (udp6): UDP (IPv6): Received and replied with 67 bytes
D: (udp6): UDP (IPv6): Received and replied with 97 bytes
D: (udp6): UDP (IPv6): Received and replied with 108 bytes
*** Booting Zephyr OS build zephyr-v3.5.0-5222-g03772eb0d806 ***
uart:~$ I: Initializing network
I: IPv6 address: 2001:db8::2
I: Run echo client
I: Network connected
I: Starting...
D: IPv6 UDP: Sent 21 bytes
D: IPv6 UDP: Received and compared 21 bytes, all ok
D: IPv6 UDP: Sent 46 bytes
D: IPv6 UDP: Received and compared 46 bytes, all ok
D: IPv6 UDP: Sent 12 bytes
D: IPv6 UDP: Received and compared 12 bytes, all ok
D: IPv6 UDP: Sent 54 bytes
D: IPv6 UDP: Received and compared 54 bytes, all ok
D: IPv6 UDP: Sent 84 bytes
D: IPv6 UDP: Received and compared 84 bytes, all ok
D: IPv6 UDP: Sent 46 bytes
D: IPv6 UDP: Received and compared 46 bytes, all ok
D: IPv6 UDP: Sent 65 bytes
D: IPv6 UDP: Received and compared 65 bytes, all ok
D: IPv6 UDP: Sent 3 bytes
D: IPv6 UDP: Received and compared 3 bytes, all ok
D: IPv6 UDP: Sent 116 bytes
D: IPv6 UDP: Received and compared 116 bytes, all ok
D: IPv6 UDP: Sent 24 bytes
D: IPv6 UDP: Received and compared 24 bytes, all ok
D: IPv6 UDP: Sent 95 bytes
D: IPv6 UDP: Received and compared 95 bytes, all ok
D: IPv6 UDP: Sent 25 bytes
D: IPv6 UDP: Received and compared 25 bytes, all ok
D: IPv6 UDP: Sent 67 bytes
D: IPv6 UDP: Received and compared 67 bytes, all ok
D: IPv6 UDP: Sent 97 bytes
D: IPv6 UDP: Received and compared 97 bytes, all ok
D: IPv6 UDP: Sent 108 bytes
D: IPv6 UDP: Received and compared 108 bytes, all ok
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This fixes our problem! It would be nice to see it in (after the suggestion is applied)!
@nandojve will you return to this before the 3.6 merge window closes this week? |
Yes, thank you! |
It would be nice to have in from my side :) |
In the Zephyr v3.5 to build the net samples pair echo-server/client the SRAM requirements increased for the atsamr21_xpro board when passing -DEXTRA_CONF_FILE=overlay-802154.conf argument. This adjusts example features to free necessary SRAM to build and run the example. Signed-off-by: Gerson Fernando Budke <[email protected]>
This update the echo_client configurations for the atsamr21_xpro board to match same configs defined at echo_server. Signed-off-by: Gerson Fernando Budke <[email protected]>
eb161a9
to
66cdbec
Compare
Hi @MaureenHelm , This seems to be ready from my side. I address all comments in regards to best values and made a test on HW yesterday. So, it only depends on approvals. Thank you again to bring this to my attention : ) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good!
In the Zephyr v3.5 to build the net samples pair echo-server/client the SRAM requirements increased for the atsamr21_xpro board when passing -DEXTRA_CONF_FILE=overlay-802154.conf argument. This adjusts the examples features to free the necessary SRAM to build and run the examples.