As subject, I use Programmer tool to flash chip, I want to know how can I control programmer to do reset or Not do reset。
As subject, I use Programmer tool to flash chip, I want to know how can I control programmer to do reset or Not do reset。
Hi,
The Programmer app performs a soft reset via the SWD interface. There is no way to select another reset type, but you can select if reset should be performed automatically or not after programming. In the screenshot you shared, auto reset is enabled.
You mean Programer use "soft rerest" NOT "pin reset" ?
My knowledge is jprog can use regs about "pin reset" to generage chip reset on type of "pin reset" .
In addition, after the programing is completed, how can a soft reset be performed if the chip has not yet started working ?
Hi,
Max_Singsun said:You mean Programer use "soft rerest" NOT "pin reset" ?
Yes, the programmer performs a soft reset (via SWD). You can verify this on your end if you like by printing the REASETREAS.
Max_Singsun said:My knowledge is jprog can use regs about "pin reset" to generage chip reset on type of "pin reset" .
You cannot perform a pin reset by writing to registers, a pin reset is only perofrmed by asserting the reset pin (if it is enabled in the UICR, as the default behaviour of the pin is a normal GPIO). nrfjprog has a pin reset option which lets you perform a pin reset if a reset line is connected between the debugger an the reset pin on SoC. This is the case on the DK, but as there is typically no need for a pin reset when debugging (as you can perform a softreset or debug reset via SWD), this is normally not used in other cases.
Max_Singsun said:In addition, after the programing is completed, how can a soft reset be performed if the chip has not yet started working ?
The reset is perofrmed via SWD, it does not requier any firmware running on the SoC. Soft reset here refers to both reset via SWS (debug reset if you like), and a reset perofrmed by the CPU. It works the same way internally, and the same bit in the RESETREAS is set for both (SREQ).
Hi,
Max_Singsun said:You mean Programer use "soft rerest" NOT "pin reset" ?
Yes, the programmer performs a soft reset (via SWD). You can verify this on your end if you like by printing the REASETREAS.
Max_Singsun said:My knowledge is jprog can use regs about "pin reset" to generage chip reset on type of "pin reset" .
You cannot perform a pin reset by writing to registers, a pin reset is only perofrmed by asserting the reset pin (if it is enabled in the UICR, as the default behaviour of the pin is a normal GPIO). nrfjprog has a pin reset option which lets you perform a pin reset if a reset line is connected between the debugger an the reset pin on SoC. This is the case on the DK, but as there is typically no need for a pin reset when debugging (as you can perform a softreset or debug reset via SWD), this is normally not used in other cases.
Max_Singsun said:In addition, after the programing is completed, how can a soft reset be performed if the chip has not yet started working ?
The reset is perofrmed via SWD, it does not requier any firmware running on the SoC. Soft reset here refers to both reset via SWS (debug reset if you like), and a reset perofrmed by the CPU. It works the same way internally, and the same bit in the RESETREAS is set for both (SREQ).
I understand now, thanks a lot!