Hi,
Hi,
Hello Parker,
I haven't tested this unofficial sample post sysbuild, but if the key in the application and the key in the script match, you should be able to attach debugger without triggering a full erase for the app core.
There are also instructions for using jlink.exe directly to write to the relevant DAP registers.
Alternatively, you can for development keep APPROTECT disabled and ERASEPROTECT disabled to make things easier.
Best regards,
Hi Johnny,
Thanks for your help. I cloned that repo and tested it out. The line for disabling the APPROTECT just prevents the rest of the code from running:
"Alternatively, you can for development keep APPROTECT disabled and ERASEPROTECT disabled to make things easier."
I assume this will have the same effect we're hoping for. We simply want to disable all APPROTECT functionality for the time being to make development as easy as possible. Are there examples or guides that step through how to do this properly for the nRF5340? I notice many examples I found are for the nRF52 and I'm wondering if it's entirely accurate for the nRF53 - since I haven't had much luck.
Parker
I should note that APPROTECT is enabled by default for our nRF5340 devkits. Is it not disabled by default.
Hello,
I tested with the latest sdk and it unlocks the debugger when the key is provided.
Regardless, for debugging, here is a branch that just disables it: droidecahedron/nrf_ctrl-ap_approtect at disable
after flashing, I was able to debug and get output without recovering. (You can choose the "debug without flashing" option if you use the GUI)
Thanks so much Johnny. I totally forgot I could disable debug flashing in the launch.json.
Thanks so much Johnny. I totally forgot I could disable debug flashing in the launch.json.