NFC pins configured as GPIO will short together

The NFC pins of my nRF52840 MCU have been set to be used as GPIO pins through the NFCPINS register.  I can toggle the GPIO lines just but I find that after power on that the two NFC pins seem to be shorted internally together, for about 1 millisecond.  How can I prevent this from happening because the NFC/GPIO pins drive some critical circuitry that can't tolerate the apparent 1ms pulse.

Parents Reply
  • Thanks Simon,
    We used the following code to configure the NFC pins as generic IOs.
            NRF_NVMC->CONFIG = NVMC_CONFIG_WEN_Wen << NVMC_CONFIG_WEN_Pos;
            while (NRF_NVMC->READY == NVMC_READY_READY_Busy){}
       
            NRF_UICR->NFCPINS &= ~UICR_NFCPINS_PROTECT_Msk;
        
            while (NRF_NVMC->READY == NVMC_READY_READY_Busy){}
            NRF_NVMC->CONFIG = NVMC_CONFIG_WEN_Ren << NVMC_CONFIG_WEN_Pos;
            while (NRF_NVMC->READY == NVMC_READY_READY_Busy){}
            NVIC_SystemReset();
    
    
    We hold the mcu reset pin and then provide the power to the hardware. We could capture a pulse which is in the following picture. 
     Actually, we can get the same pulse even if we did not hold the reset pin.
    And the versions of SDK / Softdevice are  7.0.1 and S140.
Children
Related