Problem using P0.02 with TF-M active

Hi,

We are working on adding T-M to our middleware, and we discovered a pretty annoying side effect.

We are using NCS 2.0.0

One of our device is controlled using the gpio P0.02 of a nRF5340, with the code residing in non secure part of the application core.

Since TF-M has been added, the device does not turn on, and we verified it using a multimeter (the pin stays low).

I think the issue comes from the ```c CONFIG_NFCT_PINS_AS_GPIOS ``` configuration, which does not work when using TF-M, but it is just an intuition.

I've tried adding this code to tee/tf-m/trusted-firmware-m/platform/ext/nordic_nrf/common/nrf5340/target_cfg.c, but it has no effect

```c

nrf_gpio_pin_mcu_select(2, NRF_GPIO_PIN_MCUSEL_PERIPHERAL);
nrf_gpio_pin_mcu_select(3, NRF_GPIO_PIN_MCUSEL_PERIPHERAL);

```

Do you see where the problem comes from? We need to fix it ASAP, has this pin is VERY important on our device.

If not, we will have to throw away TF-M.

Regards

Giuliano

Parents
  • Hi,

     

    My apologies for this inconvenience. I'll report this back to the TFM team.

    I can confirm that the TFM does not take in the symbol:

    CONFIG_NFCT_PINS_AS_GPIOS

    Are you using mcuboot in your application?

     

    If so, you can append the above mentioned config to my_application/child_image/mcuboot.conf and it shall apply it. Remember to delete the build folder and re-generate the build when creating new child image configuration files.

     

    Kind regards,

    Håkon

Reply
  • Hi,

     

    My apologies for this inconvenience. I'll report this back to the TFM team.

    I can confirm that the TFM does not take in the symbol:

    CONFIG_NFCT_PINS_AS_GPIOS

    Are you using mcuboot in your application?

     

    If so, you can append the above mentioned config to my_application/child_image/mcuboot.conf and it shall apply it. Remember to delete the build folder and re-generate the build when creating new child image configuration files.

     

    Kind regards,

    Håkon

Children
Related