This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

what code i have to write in Segger Embedded Studio to disable the attach to a running target on my board?

the board: nrf52-DK

Parents
  • Hi AMER.

    I guess what you want is to enable the readback protection.

    I don't know of any way to do this in SEGGER Embedded Studio other than add it to your code.
    That means writing to the UICR, more specific the APPROTECT register.
    Take a look at this answer.

    Another way to enable readback protection, is using nrfjprog.
    You can use the command; nrfjprog --rbp ALL
    You can also enable the readback protection in nRFgo Studio.

    Hope that helps. Let me know if you have any more questions.
    Best regards,
    Joakim.

Reply
  • Hi AMER.

    I guess what you want is to enable the readback protection.

    I don't know of any way to do this in SEGGER Embedded Studio other than add it to your code.
    That means writing to the UICR, more specific the APPROTECT register.
    Take a look at this answer.

    Another way to enable readback protection, is using nrfjprog.
    You can use the command; nrfjprog --rbp ALL
    You can also enable the readback protection in nRFgo Studio.

    Hope that helps. Let me know if you have any more questions.
    Best regards,
    Joakim.

Children
Related