unable to flash the code in BT 40

C:\Users\lnaik\Desktop\New_develop>nrfjprog --recover --coprocessor CP_NETWORK
Recovering device. This operation might take 30s.
[error] [ Client] - Encountered error -21: Command recover executed for 14 milliseconds with result -21
[error] [ Worker] - Eraseprotect is enabled and readback protection setting is ALL, can't recover device.
ERROR: Recover failed. Please make sure that the correct device family is given
ERROR: and try again.
NOTE: For additional output, try running again with logging enabled (--log).
NOTE: Any generated log error messages will be displayed. 
i think this is the major issue  i am facing could not able to recovery the board 

and i am not able get the log details with --log 

i had created the before also one ticket related to this but it has closed with our resolving the issue 
i hope you will give quick replay 

Parents
  • Are you sure that there is enough power supplied to the chip? Did you try it on any other chip apart from this one? If not can you please try this. 

    It has to be either not enough power or some error/damage with the chip. Which version of nrfjprog are you using?

  • nrfjprog version 10.24.2 external
    now i am getting this kind of error can you check this 
    [0/16] Performing build step for 'tfm'
    ninja: no work to do.
    -- west flash: using runner nrfjprog
    -- runners.nrfjprog: reset after flashing requested
    -- runners.nrfjprog: Flashing file: c:\Users\lnaik\Desktop\New_develop\build_1\zephyr\merged.hex
    [error] [ Client] - Encountered error -102: Command select_coprocessor executed for 140 milliseconds with result -102
    ERROR: Failed when selecting coprocessor APPLICATION
    [error] [ Worker] - An unknown error.
    ERROR: JLinkARM DLL reported an error. Try again. If error condition
    ERROR: persists, run the same command again with argument --log, contact Nordic
    ERROR: Semiconductor and provide the generated log.log file to them.
    NOTE: For additional output, try running again with logging enabled (--log).
    NOTE: Any generated log error messages will be displayed.
    FATAL ERROR: command exited with status 33: nrfjprog --program 'c:\Users\lnaik\Desktop\New_develop\build_1\zephyr\merged.hex' --sectorerase --verify -f NRF53 --coprocessor CP_APPLICATION --snr 600105674

  • I have a first hand experience with this error -102 when the supply voltage was not enough to the chip. If that is not the case, then your module might be broken. Have you tried it with another module? Are you sure your input power supply is giving enough power?

  • yes, with same firmware. Not even single line of code change.
    I have tried with other module it was show first same errors
    C:\Users\lnaik\Desktop\New_develop>nrfjprog --recover --coprocessor CP_NETWORK
    Recovering device. This operation might take 30s.
    [error] [ Client] - Encountered error -21: Command recover executed for 14 milliseconds with result -21
    [error] [ Worker] - Eraseprotect is enabled and readback protection setting is ALL, can't recover device.
    ERROR: Recover failed. Please make sure that the correct device family is given
    ERROR: and try again.
    NOTE: For additional output, try running again with logging enabled (--log).
    NOTE: Any generated log error messages will be displayed. 
    and now its working fine. 

Reply
  • yes, with same firmware. Not even single line of code change.
    I have tried with other module it was show first same errors
    C:\Users\lnaik\Desktop\New_develop>nrfjprog --recover --coprocessor CP_NETWORK
    Recovering device. This operation might take 30s.
    [error] [ Client] - Encountered error -21: Command recover executed for 14 milliseconds with result -21
    [error] [ Worker] - Eraseprotect is enabled and readback protection setting is ALL, can't recover device.
    ERROR: Recover failed. Please make sure that the correct device family is given
    ERROR: and try again.
    NOTE: For additional output, try running again with logging enabled (--log).
    NOTE: Any generated log error messages will be displayed. 
    and now its working fine. 

Children
No Data
Related