I am trying to reset the nano every from remote.
I read about that I am suppose to be able to reset the nano every via a 1200 baud touch.
also mentioned in
I am expecting similar behavior as pushing the reset button locally, which means the board start with the setup()
But I don't seems get that working.
Unlike mentioned in the
I don't see reset at all, no matter connecting the serial through python or send the 1200 baud
The python script for the reset is kind of come from the post mentioned previously:
import serial
import time
com=serial.Serial(sys.argv[1],1200,dsrdtr=True)
com.dtr=True
com.write('0000'.encode())
time.sleep(2)
com.dtr=False
time.sleep(2)
com.close()
I am expecting the reset should be done via the updi pin, so I put scope on the updi pin but saw nothing when I run the script above.
Then I try to find where is the 1200 Baud goes, but I don't see it on the ATSAMD1114A.
On pin 21/22, I probe the test point at the back of the board, I saw bit flipping, the fastest at 5.6MHz
On pin 11/12, I probe the two pad of the R7, which is the 0 ohm resistor connecting TX_UPDI and RX_UPDI. I saw no change on both pins, and they both high.
On pin 15/16, I probe the two leds for the TX_D11 and RX_D11. I don't see bit flipping and both pins are high
Then I change the reset code baudrate to 9600
At the TX_D11, I saw the bits flipping, but the bit string at 9600 baud, with the high for ~104us. and low for ~104us.
So it seems that python script does not reset ATMEGA4809.
Then how can we use this 1200 Baud to reset the nano every?