How to disable JLINK port?

Dear,

We want to disable the JLINK port.   I read a couple of threads related to this question but couldn't find the specific answer we are looking for.

Please let us know how to disable the JLINK port.

Also, can you please review what we tested?

1) If NRF_UICR->APPROTECT = 0x00;, it looked that all UART and JLINK port are disabled.  Is it expected?

2) If we apply the code below, it looked that JLINK port was disabled but UART was still active.  Is it expected?

        /* Prevent processor from unlocking APPROTECT soft branch after this point. */
        NRF_CTRLAP_S->APPROTECT.LOCK = 0;
        /* Prevent processor from unlocking SECURE APPROTECT soft branch after this point. */
        NRF_CTRLAP_S->SECUREAPPROTECT.LOCK = 0;

        NRF_CTRLAP_S->APPROTECT.DISABLE = 0;
        NRF_CTRLAP_S->SECUREAPPROTECT.DISABLE = 0;

        /* Prevent processor from unlocking APPROTECT soft branch after this point. */
        NRF_CTRLAP_S->APPROTECT.LOCK = 1;
        /* Prevent processor from unlocking SECURE APPROTECT soft branch after this point. */
        NRF_CTRLAP_S->SECUREAPPROTECT.LOCK = 1;

Parents Reply Children
No Data
Related