How to config NFC as gpio on nrf54l15?

Hello!

I've just come into contact with the nrf54l15. On the customer's board, it is necessary to change the NFC pin to a regular gpio, and they following the previous nrf52/53 method to add CONFIG_NFCT_PINS_AS_GPIOS=y in prj.conf but it has no effect. Is there any way to achieve it? thank you!

Regards,

Pany

Parents Reply Children
  • I have had this issue as well and the above solution does not work for Trust Zone projects.

    looking in nrf54l_05_10_15.dtsi

    #ifdef USE_NON_SECURE_ADDRESS_MAP
            /* intentionally empty because UICR is hardware fixed to Secure */
    #else
            uicr: uicr@ffd000 {
                compatible = "nordic,nrf-uicr";
                reg = <0xffd000 0x1000>;
            };
    #endif
    So for the non-secure builds:

    &uicr {

          nfct-pins-as-gpios;

    };

    or

    CONFIG_NFCT_PINS_AS_GPIOS=y

    Does not work.

    In the case of non-secure and also secure, adding the following line will fix the issue in both cases:

    NRF_NFCT->PADCONFIG = 0;
Related