I am using the controller ATSAML21J18B in my project.
The device is battery powered and has an application flashed and running.
When the device is powered off and powered on again, my intention is to start with a new application instead of the existing application.
Application-A running in the device --> Device is powered off --> Device is powered ON via Jlink (Debugger: Atmel SAM-ICE) and CPU is held in reset (Application-A not running)--> Application B is flashed --> Reset is released and CPU runs with Application-B.
In ATSAML21J18B datasheet attached,in section 15.6.2. it is mentioned that "CPU Reset Extension ensures that the CPU is not executing code at startup while a debugger is connected to the system".
But what I observe is, the application starts running immediately after I power the device via Jlink.
Do anyone know how to halt the CPU immediately after powering the device via Jlink?
Lavanya S P