nRF9160 Use secure peripheral from non-secure(ns) firmware

Hi !

In nRF9160, want to implement nrf_mode_lib for modem. Therefore, need to select non-secure(ns) board.But want to set UARTE2 as secure. As UARTE2 provides communication between nRF9160 and nRF52840.

Question:
1) How would I used UARTE2 secure peripheral from non-secure firmware ?
2) On configuring secure, what is the feature added for secure in nRF9160 board ?

Parents
  • Hi Siddharth

    When you build for nrf9160dk_nrf9160, all peripherals memory are in the same "zone". Therefore, peripherals are neither secure or non-secure.

    When you build for nrf9160dk_nrf9160_ns, peripherals and memory are split into two different parts, the non-secure and the secure.
    You can choose which peripherals are set as non-secure. The rest are secure.

    Secure peripherals are secure only because the non-secure parts can not access the secure parts.
    Some functions can bridge the non-secure/secure gap, but this should not be done lightly, as it may compromise the security of the device.

    See Secure Partition Manager for more information on secure and non-secure.

    What are you going to use the nRF52840 for?

    Would it be an alternative to make UARTE2 non-secure instead of secure, or does it need to be secure?

    Regards,
    Sigurd Hellesvik

  • nRf9160 and nRF52840 communicate with each other and send MQTT-SN msg over UARTE2.
    So, want to make UARTE2 secure for security purpose. But also have to use modem with nRF9160 for cloud connection. Hence, need to configure non-secure(ns) board for nRF9160.

    That's why question arise here that
    1) How to use UARTE2 secure peripheral from non-secure firmware ?
    2) Can SPM service be modified to add UARTE2 secure peripheral communication from non-secure image ?

Reply
  • nRf9160 and nRF52840 communicate with each other and send MQTT-SN msg over UARTE2.
    So, want to make UARTE2 secure for security purpose. But also have to use modem with nRF9160 for cloud connection. Hence, need to configure non-secure(ns) board for nRF9160.

    That's why question arise here that
    1) How to use UARTE2 secure peripheral from non-secure firmware ?
    2) Can SPM service be modified to add UARTE2 secure peripheral communication from non-secure image ?

Children
Related