[SOLVED] Set readback protection nRf5283 in stand alone mode

This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

  • [SOLVED] Set readback protection nRf5283 in stand alone mode

    Hello,


    we use the ARM flasher in Production to flash the nRF5283 IC. Our customer want now to set a readback Protaction.
    I tried to set the readback protection with the MCU exit steps, but it didnt work.
    Then i find in your Forum this tread:
    [SOLVED] J-link portable NRF52 recover

    but I didnt understand how i can use this via MCU init or exit steps.
    Can you please give me the config to set the readback Protection in stand alone mode?

    My Jflash file looks like that
    Display Spoiler

    AppVersion = 65604
    FileVersion = 2
    [GENERAL]
    ConnectMode = 0
    CurrentFile = "C:\Users\00001.hex"
    DataFileSAddr = 0x00000000
    GUIMode = 0
    HostName = ""
    TargetIF = 1
    USBPort = 0
    USBSerialNo = 0x00000000
    [JTAG]
    IRLen = 0
    MultipleTargets = 0
    NumDevices = 0
    Speed0 = 4000
    Speed1 = 4000
    TAP_Number = 0
    UseAdaptive0 = 0
    UseAdaptive1 = 0
    UseMaxSpeed0 = 0
    UseMaxSpeed1 = 0
    [CPU]
    NumInitSteps = 1
    InitStep0_Action = "Reset"
    InitStep0_Value0 = 0x00000000
    InitStep0_Value1 = 0x00000000
    InitStep0_Comment = "Reset and halt target"
    NumExitSteps = 2
    ExitStep0_Action = "Write 32bit"
    ExitStep0_Value0 = 0x10001208
    ExitStep0_Value1 = 0xFFFFFF00
    ExitStep0_Comment = ""
    ExitStep1_Action = "Reset"
    ExitStep1_Value0 = 0x00000000
    ExitStep1_Value1 = 0x00000000
    ExitStep1_Comment = ""
    UseScriptFile = 0
    ScriptFile = ""
    UseRAM = 1
    RAMAddr = 0x20000000
    RAMSize = 0x00010000
    CheckCoreID = 1
    CoreID = 0x4BA00477
    CoreIDMask = 0x0F000FFF
    UseAutoSpeed = 0x00000001
    ClockSpeed = 0x00000000
    EndianMode = 0
    ChipName = "Nordic Semi nRF52832_xxAA"
    [FLASH]
    aRangeSel[1] = 0-128
    BankName = "Internal flash"
    BankSelMode = 1
    BaseAddr = 0x00000000
    NumBanks = 1
    [PRODUCTION]
    AutoPerformsErase = 1
    AutoPerformsProgram = 1
    AutoPerformsSecure = 0
    AutoPerformsStartApp = 0
    AutoPerformsUnsecure = 0
    AutoPerformsVerify = 1
    EnableFixedVTref = 0
    EnableTargetPower = 0
    EraseType = 3
    FixedVTref = 0x00000CE4
    MonitorVTref = 1
    MonitorVTrefMax = 0x0000157C
    MonitorVTrefMin = 0x000003E8
    OverrideTimeouts = 1
    ProgramSN = 0
    SerialFile = ""
    SNAddr = 0x00000000
    SNInc = 0x00000001
    SNLen = 0x00000004
    SNListFile = ""
    SNValue = 0x00000001
    StartAppType = 0
    TargetPowerDelay = 0x00000014
    TimeoutErase = 0x00003A98
    TimeoutProgram = 0x00002710
    TimeoutVerify = 0x00002710
    VerifyType = 1
    [PERFORMANCE]
    DisableSkipBlankDataOnProgram = 0x00000000
    PerfromBlankCheckPriorEraseChip = 0x00000001
    PerfromBlankCheckPriorEraseSelectedSectors = 0x00000001
  • Hello,

    the nRF52 chips have a special section called "UICR":
    https://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.nrf52832.ps.v1.1%2Fuicr.html

    You can enable the readback protection by simply defining the appropriate register (APPROTECT) in your data file.

    Regards
    Arne
    Please read the forum rules before posting.

    Keep in mind, this is *not* a support forum.
    Our engineers will try to answer your questions between their projects if possible but this can be delayed by longer periods of time.
    Should you be entitled to support you can contact us via our support system: segger.com/ticket/

    Or you can contact us via e-mail.