Trying and failing to run the MQTT sample on nRF52840-DK + nRF7002-EK

Hi,

I have built and run the MQTT sample for an nRF7002-DK and had it work as expected (connect, publish messages to test.mosquitto.org).

Now I'm trying to get that sample to run on an nRF52840-DK with an nRF7002-EK shield. Here's my attempt at the build configuration:

The truncated extra CMake argument says: -DCACHED_CONF_FILE="f:/Ncs_Exercises/mqtt/prj.conf;f:/Ncs_Exercises/mqtt/boards/shell_prj.conf"

And just off the bottom of that screenshot, "Use sysbuild" is unchecked.

As you can see I have borrowed the .overlay file (without really understanding what it is/does) from the Shell sample. The shell_prj.conf file is one I've manually created by copying the contents of the Shell sample's prj.conf. I have previously had the Shell sample building/running as expected on the 52840-DK + 7002-EK combination. I have also pasted the following extra lines into shell_prj.conf:
CONFIG_L2_WIFI_CONNECTIVITY=y
CONFIG_L2_WIFI_CONNECTIVITY_AUTO_CONNECT=n
CONFIG_L2_WIFI_CONNECTIVITY_AUTO_DOWN=n

Connect SDK version is 2.6.1, and I'm using VS Code.

I suspect what I've described above isn't the right way to go about trying to adapt the sample for this hardware, but for better or worse, it does build, run (briefly) and connect to the wifi. It then reliably crashes and reboots, presumably around the time when it actually tries to test.mosquitto.org. But I'm having a tough time finding out exactly where. Printf-style debugging is not getting me there, and when I try to enable CONFIG_MQTT_HELPER_LOG_LEVEL_DBG, it's frustratingly grayed out.

So a few things I'm hoping someone can help me with:

First, is running this sample on the 52840-DK + 7002-EK combination actually possible?

If anyone can describe (or point me to) the right way to try to build an SDK sample (and more specifically this sample) for a non-compatible board, that would be great.

In case I'm approximately on the right track and I'm just missing some config options, I'd obviously like to know what they are.

Thanks,

Richard.

Parents Reply Children
No Data
Related