Issue with Out-of-Tree Build for NRF7002DK_NRF5340_CPUAPP_NS

Hi Nordic,

I’m new to the nRF Connect SDK for VS Code and currently evaluating the nRF7002 DK board. I’ve been able to build and debug firmware successfully for the NRF7002DK_NRF5340_CPUAPP variant. However, I’m having trouble getting the out-of-tree build to work for the NRF7002DK_NRF5340_CPUAPP_NS variant.

Is there something I might have missed in the setup or configuration?

Thanks in advance for your help!

Thanks
PG
Parents Reply Children
  • Hi Marte,

    I’m working on building MQTT using the NRF7002DK_NRF5340_CPUAPP_NS variant. The samples configure and build without any errors. However, once I flash the image onto the target, I encounter the following error message in the serial terminal:

    Pins have been configured as secure.
    GPIO port: 0x00000001
    Pin: 0x00000000
    Pin: 0x00000001
    Booting TF-M v2.1.1-ncs3
    [Sec Thread] Secure image initializing!
    FATAL ERROR: BusFault

    I’ve observed that all NCS samples with the *_ns suffix result in the same issue but the NRF7002DK_NRF5340_CPUAPP (non-secure) samples work fine on the same board.

    Do you have any insights into what might be causing this issue with the NS variants?

    Regards,
    PG

  • Hi,

    Which version of the nRF Connect SDK are you using?

    The problem could be because logging is, by default, enabled in TF-M. TF-M uses UART1 for logging, which uses the pins in the error message (P1.00 and P1.01). Please try disabling TF-M logging and see if that helps:

    CONFIG_TFM_SECURE_UART=n
    CONFIG_TFM_LOG_LEVEL_SILENCE=y

    Best regards,
    Marte

Related