Building TF-M : error: 'NRF_UARTENRF_SECURE_UART_INSTANCE' undeclared (first use in this function)

Hello,

I'm trying to build the trusted firmware M for the nrf9151. 

I did the following steps: 

And I get the following build error: 

/home/nponsard/git/trusted-firmware-m/platform/ext/target/nordic_nrf/common/core/target_cfg.h:38:36: error: 'NRF_UARTENRF_SECURE_UART_INSTANCE' undeclared (first use in this function)
  38 | #define NRF_UARTE_INSTANCE(id)     NRF_UARTE##id
     |                                    ^~~~~~~~~

There's more output but that seems to be the more relevant lines.

I don't understand what I missed, do I need an additional dependency ? I'm on arch linux.

Thanks in advance,

Nils PONSARD

Parents Reply
  • Hello,

    Thanks for your answer,

    I am trying to run an OS written in Rust (Ariel-OS) that doesn't use the sdk. It wroks fine in S mode without TF-M, but I want to use the modem of the nrf9151 and it requires to be in NS mode.

    I tried to clone and build the fork you linked but I get the first command when running the first cmake command:

    fatal: invalid reference: f985bee
    CMake Error at mbedcrypto-subbuild/mbedcrypto-populate-prefix/tmp/mbedcrypto-populate-gitclone.cmake:61 (message):
     Failed to checkout tag: 'f985bee'

    Regards,

    Nils

Children
No Data
Related