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

nrfjprog clarification --eraseall vs --chiperase vs --recover

Hello,

Is calling --eraseall before calling --program the same as combining --program with --chiperase?

Does --recover erase all the areas that --eraseall and --chiperase erase plus the readback protection registers?

Thank you!

Parents
  • Hi,

    The different nrfjprog commands can be found here.

    From the documentation: --eraseall erases all user available program flash memory and the UICR page, and --chiperae erases all the available non-volatile memory and UICR. So to answer your question, running --eraseall before --program is the same as when you run --program with --chiperase. The only difference between them is that --chiperase can be combined with --program.

    Yes, --recover erases all user flash memory, so it will erase all the areas that --eraseall and --chiperase erase, also UICR, in addition to the readback protection mechanism.

    Best regards,

    Marte

Reply
  • Hi,

    The different nrfjprog commands can be found here.

    From the documentation: --eraseall erases all user available program flash memory and the UICR page, and --chiperae erases all the available non-volatile memory and UICR. So to answer your question, running --eraseall before --program is the same as when you run --program with --chiperase. The only difference between them is that --chiperase can be combined with --program.

    Yes, --recover erases all user flash memory, so it will erase all the areas that --eraseall and --chiperase erase, also UICR, in addition to the readback protection mechanism.

    Best regards,

    Marte

Children
Related