The BT840F SoC can be flashed only once.

I am building my custom PCB with the nRF52840 chip using the Fanstel BT840F SoC. I have designed and fabricated my own PCB. I am able to flash the code onto the SoC only once. Upon trying again, I get an error (-102) saying that I cannot access the j-link. I also have an BT840 Evaluation kit and I am able to flash that repeatedly many times. I want to know what the issue is and how to overcome it?

error 1:

C:\Nordic\blinky_pwm>flash_with_uicr.bat
[1/3] Merging app hex with UICR hex...
Parsing input files.
Merging file "zephyr.hex" into output.
Merging file "uicr_regout0_3v3.hex" into output.
Storing merged file.
[2/3] Flashing with nrfjprog...
[ ###### ] 0.000s | Erase file - Check image [error] [ nRF52] - Failed while erasing device. -102: An unknown error.
[error] [ Worker] - An unknown error.
[error] [ Client] - Encountered error -102: Command erase_file executed for 71 milliseconds with result -102
ERROR: JLinkARM DLL reported an error. Try again. If error condition
ERROR: persists, run the same command again with

error 2:

C:\Nordic\blinky_pwm>nrfjprog --recover
[error] [ Client] - Encountered error -102: Command connect_to_emu_with_snr executed for 264 milliseconds with result -102
[error] [ Worker] - An unknown error.
ERROR: Unable to connect to a debugger.
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.

I tried resetting and other recommended things by GenAI but couldn't find a solution. Please advise0207.blinky_pwm.zip

Related