Wi-Fi Fundamentals Lesson 2, Exercise 3 crashes with given config sizes

If I enter the prj.conf settings according to the lesson text then the firmware crashes with different provisioning functions from the smartphone app such as forgetting a provisioning or setting or updating one.  When I change the RX stack size to what is the solution folder, then it works.  Perhaps the lesson text should be updated to what is in the solution.

Step 1.1 of the lesson says to use these settings, but it crashes:

CONFIG_BT=y
CONFIG_BT_PERIPHERAL=y
CONFIG_BT_PERIPHERAL_PREF_TIMEOUT=75
CONFIG_BT_WIFI_PROV=y
CONFIG_BT_BONDABLE=n

CONFIG_BT_DEBUG_LOG=y
CONFIG_BT_SMP=y
CONFIG_BT_BUF_ACL_RX_SIZE=151
CONFIG_BT_L2CAP_TX_MTU=147
CONFIG_BT_BUF_ACL_TX_SIZE=151
CONFIG_BT_RX_STACK_SIZE=4096
CONFIG_BT_DEVICE_NAME_DYNAMIC=y

The solution has a larger RX_STACK_SIZE and works:

CONFIG_BT=y
CONFIG_BT_PERIPHERAL=y
CONFIG_BT_PERIPHERAL_PREF_TIMEOUT=75
CONFIG_BT_WIFI_PROV=y
CONFIG_BT_BONDABLE=n

CONFIG_BT_DEBUG_LOG=y
CONFIG_BT_SMP=y
CONFIG_BT_BUF_ACL_RX_SIZE=151
CONFIG_BT_L2CAP_TX_MTU=147
CONFIG_BT_BUF_ACL_TX_SIZE=151
CONFIG_BT_RX_STACK_SIZE=5120     # <-- larger stack size
CONFIG_BT_DEVICE_NAME_DYNAMIC=y

I noticed that the Nordic iOS provisioning app changed recently, so maybe that is related?  Either way, the second set of settings above (from the solution) eliminated the crashes.

Related