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

Can I turn on APPROTECT right before we enable softdevice?

Hi, 

     We would like to protect our product from people accessing the device via J-Link. We build our application with FreeRTOS. Can we follow this to set it before I start the Softdevice thread? Do I still need to reset the device even if I can make the change before I start softdevice?

Thank you,

Min-Ching

Parents
  • Hi Min-Ching,

    Yes, it is possible to write the UICR registers whenever the softdevice is not enabled. As mentioned in the thread you link, you need to reset the chip before the changes is applied. Any reason you do not want to set APPROTECT register in UICR during production programming? This will make sure the content of the memory can not be read back by the user, as the setting will be applied on first startup. You can find an example of configurating UICR in the SDK peripheral examples.

    Best regards,
    Jørgen

  • Yes, you can disable the softdevice at any point in your code by calling the function sd_softdevice_disable().

Reply Children
No Data