0

CircuitPython with Feather M0 Express Auto-reload is off
Moderators: adafruit_support_bill, adafruit

Forum rules
Adafruit MicroPython is currently EXPERIMENTAL and BETA - Please visit https://learn.adafruit.com/category/micropython and http://forum.micropython.org/ in addition to our section here!
Please be positive and constructive with your questions and comments.

CircuitPython with Feather M0 Express Auto-reload is off

by phi_fibonacci on Fri May 19, 2017 8:32 pm

I have a Feather M0 Express loaded with CircuitPython. I can run the Blinky program but the auto reload doesn't work. When I make some simple updates to the blinky program (like changing sleep times) and save the updated file the board doesn't run the new code. If I reset the board using the reset button the new code loads and everything works as expected. I connected to the REPL and it displays "Auto-reload is off." I am able to proceed to the the REPL without issue.

So the question is, how do I switch on the Auto-reload?

Other info.

Using latest CircuitPython release, adafruit-circuitpython-feather_m0_express-0.10.0.uf2
Feather M0 Express
Atom Editor
MacOS Sierra

Thanks.

phi_fibonacci
 
Posts: 11
Joined: Wed Jun 04, 2014 9:15 pm

Re: CircuitPython with Feather M0 Express Auto-reload is off

by fos on Sat May 20, 2017 8:10 am

I have the same issue with the new Metro M0 Express. Pushing the reset button loads the changes. A small thing but auto reload would be more convenient.

fos

fos
 
Posts: 44
Joined: Thu May 29, 2014 9:04 pm

Re: CircuitPython with Feather M0 Express Auto-reload is off

by tannewt2 on Sat May 20, 2017 11:00 am

Yup! Sorry! I broke it with 0.10.0. You can turn it back on by doing this in code.py or boot.py:

Code: Select all | TOGGLE FULL SIZE
import samd
samd.enable_autoreload()


I'll try fixing it right now though so hopefully 0.10.1 will be available on GitHub by the time you read this.

Sorry for the trouble! I'm glad you like autoreload.

tannewt2
 
Posts: 257
Joined: Thu Oct 06, 2016 8:48 pm

Re: CircuitPython with Feather M0 Express Auto-reload is off

by phi_fibonacci on Sat May 20, 2017 12:44 pm

Yay! No problems. Just enjoying playing with the new board.

Thanks for the prompt response.

phi_fibonacci
 
Posts: 11
Joined: Wed Jun 04, 2014 9:15 pm

Re: CircuitPython with Feather M0 Express Auto-reload is off

by phi_fibonacci on Sat May 20, 2017 1:39 pm

Quick follow up. I just installed version 0.10.1 and auto reload is working as expected. Thanks again.

phi_fibonacci
 
Posts: 11
Joined: Wed Jun 04, 2014 9:15 pm

Re: CircuitPython with Feather M0 Express Auto-reload is off

by tannewt2 on Sat May 20, 2017 1:49 pm

Excellent! Thanks for reporting back. Also beware of pressing the reset button. It can lead to file system corruption if the host OS hasn't flushed all of its changes.
~Scott

tannewt2
 
Posts: 257
Joined: Thu Oct 06, 2016 8:48 pm

Re: CircuitPython with Feather M0 Express Auto-reload is off

by fos on Sat May 20, 2017 1:50 pm

Thanks for the rapid update.

Incredible support!

fos

fos
 
Posts: 44
Joined: Thu May 29, 2014 9:04 pm

Re: CircuitPython with Feather M0 Express Auto-reload is off

by tannewt2 on Sun May 21, 2017 1:24 am

No problem. Sorry I broke it in the first place.

Thanks for posting here about the regression!

~Scott

tannewt2
 
Posts: 257
Joined: Thu Oct 06, 2016 8:48 pm

Please be positive and constructive with your questions and comments.