azure_iot_hub sample without TFM in SDK v2.6.x

In the transition from SDK v2.5.x to v2.6.x, Nordic removed support for boards that don't have the nonsecure (_ns) configuration in the Azure IOT hub sample.  In other words. the sample now only supports TFM builds.  I would like to use the sample for a build without TFM.

I tried using the nrf7002dk_nrf5340_cpuapp.conf and nrf7002dk_nrf5340_cpuapp.overlay from SDK 2.5.3.  The sample builds, runs, and is able to connect to wifi.  However, I get a -22 error back when it tries to sync data to the Azure server.  Looking through the code it appears that the I am not able to certificates that are loaded through the mqtt_helper module.  Stepping through the code, it appears that the certificates are loaded so perhaps they are not available through the security tags.

Could you advise how to get the azure_iot_hub sample working for board nrf7002dk_nrf5340_cpuapp SDK 2.6.x?

Parents
  • Hi,

    It should be possible to build this without TF-M.

    I suggest that you start by copying the corrent baord files for nrf7002dk_nrf5340_cpuapp_ns to nrf7002dk_nrf5340_cpuapp and remove TF-M related configuration from them.

    Then build for nrf7002dk_nrf5340_cpuapp and look for Kconfig override warnings. If you find any of those, fix them and then continue until the project builds correctly.

    Then run it and see if it works.

    Let me know if you get any problems along the way.

    Regards,
    Sigurd Hellesvik

Reply
  • Hi,

    It should be possible to build this without TF-M.

    I suggest that you start by copying the corrent baord files for nrf7002dk_nrf5340_cpuapp_ns to nrf7002dk_nrf5340_cpuapp and remove TF-M related configuration from them.

    Then build for nrf7002dk_nrf5340_cpuapp and look for Kconfig override warnings. If you find any of those, fix them and then continue until the project builds correctly.

    Then run it and see if it works.

    Let me know if you get any problems along the way.

    Regards,
    Sigurd Hellesvik

Children
No Data
Related