Closed vojtechj closed 2 weeks ago
Hi @vojtechj! We appreciate you submitting your first issue for our open-source project. 🌟
Even though I'm a bot, I can assure you that the whole community is genuinely grateful for your time and effort. 🤖💙
@vojtechj I submmited a fix to solve the issue. However, it is also necessary/recommended that you add the following to your app build (values could be optimized..):
# increase UDP stack size
CONFIG_MCUMGR_TRANSPORT_UDP_STACK_SIZE=2048
#increase sys workq size
CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=2048
# increase mcumgr net buffer size
CONFIG_MCUMGR_TRANSPORT_NETBUF_SIZE=4096
CONFIG_MCUMGR_TRANSPORT_NETBUF_COUNT=4
CONFIG_MCUMGR_TRANSPORT_NETBUF_USER_DATA_SIZE=32
CONFIG_NET_DHCPV4=y
CONFIG_ESP32_WIFI_STA_AUTO_DHCPV4=y
CONFIG_NETWORKING=y
Great, thank you a lot.
@vojtechj I submmited a fix to solve the issue. However, it is also necessary/recommended that you add the following to your app build (values could be optimized..):
# increase UDP stack size CONFIG_MCUMGR_TRANSPORT_UDP_STACK_SIZE=2048 #increase sys workq size CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=2048 # increase mcumgr net buffer size CONFIG_MCUMGR_TRANSPORT_NETBUF_SIZE=4096 CONFIG_MCUMGR_TRANSPORT_NETBUF_COUNT=4 CONFIG_MCUMGR_TRANSPORT_NETBUF_USER_DATA_SIZE=32 CONFIG_NET_DHCPV4=y CONFIG_ESP32_WIFI_STA_AUTO_DHCPV4=y CONFIG_NETWORKING=y
do these config recommendations apply for esp32 c3 as well? and where can I watch the submitted fix?
@sylvioalves do these config recommendations apply for esp32 c3 as well? and where can I watch the submitted fix?
@vojtechj humm, this issue should be closed already. Not sure why it is still opened. Fix is already merged, both in v3.7-branch and main. Have you tried already? Recommendation follows as is for any ESP32 model.
Thank you for the fix. A will try it.
Describe the bug ESP32S3 crashes when sending image over UDP, but the ESP32C3 works well.
To Reproduce add the following lines to
samples/subsys/mgmt/mcumgr/smp_svr/prj.conf
to be able to connect to wifi:in
boards/esp32s3_devkitc_procpu.overlay
enableusb_serial
andwifi
:build for board
esp32s3_devkitc/esp32s3/procpu
and add UDP conf:-DEXTRA_CONF_FILE=overlay-udp.conf
when built and assuming mcuboot flashed and connected to wifi: flash via UDP:
newtmgr.exe --conntype udp --connstring=[192.168.0.100]:1337 image upload build\zephyr\zephyr.signed.confirmed.bin
Expected behavior to be successfully flashed via UDP like it is possible with esp32c3_devkitm
Logs and console output
Environment (please complete the following information):