AWS IoT sample with BLE Mesh failing to build

Hardware:
nrf7002_nrf5340

Version:
ncs-v2.61

Firmware:
sample/aws_iot + BLE Mesh initialization ( chat_cli sample example )

Scenario:

My project requires BLE Mesh and MQTT AWS IoT, I have these working separately, however when attempting to integrate together I'm running into issue where when it builds the CPUNET image it's failing attempting to build see the logs attached. But essentially its logging a failure of parsing out the MBEDTLS_PRIVATE() macro causing all members to appear as undefined.

*note: I can't use TF-M on my project as it takes up too much room, I managed to get mBedTLS to build and work without it, however this seems irrelevant to my issue, as the reproduce steps below work with the base sample using TF-M as well.

Reproduce Steps:

*edit*: I didn't copy the right files, the steps I label actually work, (my issue persists) but its not as simple as combining the two samples, looking to reproduce it with samples again will update when I figure out whats causing the issue.


0552.aws_iot_build_logs.txt

  • Hi,

    Instead of going the MbedTLS route, you can use PSA without TF-M, which should work out-of-the-box. (Just don't build it for non-secure). But maybe that as well didn't fit with your size constraints?

    Regarding the build errors that you see, there seems to be some kconfig conflicts in your project leading to some MBEDTLS related configs not getting set. You will have to resolve those configuration conflicts.

    Regards,
    Terje

Related