Hello,
I am trying to set system on mode in nrf52840 usb dongle.
This mode switched automatically by idle task, when there is no thread running.
There is no while(1) loop and i am using k_sleep(k_forever).
I am using SWD debugger J-Link.
I supply my nrf52840 from external power supply and i measure 500uA!
I suppose that debugger set some peripheral on and i verify that from that post:
"The nRF52 may remain in debug interface (DIF) mode if the SWD debugger connection is not disconnected properly. When the device is in debug interface mode, it will draw additional current since it keeps a certain set of peripherals ON at all times. Performing a pin reset, given pin reset has been enabled on the part and it is accessible, is a common way of making sure DIF mode is not enabled."
First question, how can i disable exactly the DIF mode?
Second question, could you please give me an example with system on based on nrf52840 with zephyr?
I appreciate your help guys!
Thanks in advance