This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

nRF52 DK segger (PCA10036) not giving option to lock the application code

I am using nRF51822 (PTR5518A) with SDK v12 and s130 softdevice. To dump the code I am using nRF52 DK segger (PCA10036). With that I am able to dump the code but there is no option to lock it. I don't have any other segger board to dump the code. Is there any way to enable code locking facility in nRF52 DK segger board ? Or can I enable it through code?

Parents
  • This looks like misunderstanding. Every nRF5x chip you can "lock" against read-back and debugger access. This is what most of the people do once they are done with development and go to production. The only way to bypass it is either hack it (there unfortunately is vulnerability on nRF51 which allows some tricks) or erase the chip completely which will "unlock" it.

    Then you say you have PCA10036 but you don't have other SEGGER board. Why would you need it? "Lock" in nrfjprog or nRFgo Studio is of course linked to the nRF5x target chip not to SEGGER J-Link OB fw (that is kind of locked by itself, you can only bootload it and update with other FW image from SEGGER or Nordic...)

  • I'm afraid you really misunderstood Nordic dev kit:

    • PCA10036 IS the name of Nordic nRF52 Preview Dev Kit.
    • On the Dev Kit there are two main MCUs: on is Atmel chip with white sticker which contains SEGGER J-Link OB FW. The fact that sticker says "PCA10036" doesn't mean it's the name of the chip but that's code name of the whole PCB.
    • Second MCU is actual nRF52 target.
    • Now SEGGER J-Link OB can target one of 3 possible targets for JTAG/SWD debugging and programming: firstly it checks if there is any valid target on ports P19 or P20 and only if nothing is detected it tries internal target on the board. I suppose you connect your custom board to one of these P19/20 headers.
    • Side note: PCA10036 contains only pre-production variant of nRF52 target so it shouldn't be used for development. However it can be used as SEGGER J-Link OB for external Nordic chips without problems.
Reply
  • I'm afraid you really misunderstood Nordic dev kit:

    • PCA10036 IS the name of Nordic nRF52 Preview Dev Kit.
    • On the Dev Kit there are two main MCUs: on is Atmel chip with white sticker which contains SEGGER J-Link OB FW. The fact that sticker says "PCA10036" doesn't mean it's the name of the chip but that's code name of the whole PCB.
    • Second MCU is actual nRF52 target.
    • Now SEGGER J-Link OB can target one of 3 possible targets for JTAG/SWD debugging and programming: firstly it checks if there is any valid target on ports P19 or P20 and only if nothing is detected it tries internal target on the board. I suppose you connect your custom board to one of these P19/20 headers.
    • Side note: PCA10036 contains only pre-production variant of nRF52 target so it shouldn't be used for development. However it can be used as SEGGER J-Link OB for external Nordic chips without problems.
Children
No Data
Related