Ampy -p COM1 reset /not restarting board

CircuitPython on hardware including Adafruit's boards, and CircuitPython libraries using Blinka on host computers.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
BoKKeR
 
Posts: 2
Joined: Mon Jan 15, 2018 9:47 am

Ampy -p COM1 reset /not restarting board

Post by BoKKeR »

Hey, I am using ampy to manage my files on both esp32 and 8266. Everything works except the reset that just stops the script instead of restarting the board. did anyone get it to work? any workarounds? I am asking because I am working on an ampyGUI and this would help with the automatization.

User avatar
jerryn
 
Posts: 1869
Joined: Sat Sep 14, 2013 9:05 am

Re: Ampy -p COM1 reset /not restarting board

Post by jerryn »

I tried ampy -p /dev/ttyUSB0 reset on an esp8266 and it appears to execute a "soft" reset. Looking at the ampy code https://github.com/adafruit/ampy, it just enters/exits the Raw REPL to induce the RESET.
I also tried:
ampy -- /dev/ttyUSB0 ls

and it also resulted in a soft reset of the board after providing the file listing.

User avatar
BoKKeR
 
Posts: 2
Joined: Mon Jan 15, 2018 9:47 am

Re: Ampy -p COM1 reset /not restarting board

Post by BoKKeR »

Looking at the source I see that its true. I made a dirty hack and submited a Issue on github

https://github.com/adafruit/ampy/issues/38

Locked
Please be positive and constructive with your questions and comments.

Return to “Adafruit CircuitPython”