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.
CircuitPython with Feather M0 Express Auto-reload is off
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
-
- Posts: 23
- Joined: Wed Jun 04, 2014 9:15 pm
- fos
- Posts: 97
- Joined: Thu May 29, 2014 9:04 pm
Re: CircuitPython with Feather M0 Express Auto-reload is off
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
- tannewt
- Posts: 3304
- Joined: Thu Oct 06, 2016 8:48 pm
Re: CircuitPython with Feather M0 Express Auto-reload is off
Yup! Sorry! I broke it with 0.10.0. You can turn it back on by doing this in code.py or boot.py:
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.
Code: Select all
import samd
samd.enable_autoreload()
Sorry for the trouble! I'm glad you like autoreload.
-
- Posts: 23
- Joined: Wed Jun 04, 2014 9:15 pm
Re: CircuitPython with Feather M0 Express Auto-reload is off
Yay! No problems. Just enjoying playing with the new board.
Thanks for the prompt response.
Thanks for the prompt response.
-
- Posts: 23
- Joined: Wed Jun 04, 2014 9:15 pm
Re: CircuitPython with Feather M0 Express Auto-reload is off
Quick follow up. I just installed version 0.10.1 and auto reload is working as expected. Thanks again.
- tannewt
- Posts: 3304
- Joined: Thu Oct 06, 2016 8:48 pm
Re: CircuitPython with Feather M0 Express Auto-reload is off
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
~Scott
- fos
- Posts: 97
- Joined: Thu May 29, 2014 9:04 pm
Re: CircuitPython with Feather M0 Express Auto-reload is off
Thanks for the rapid update.
Incredible support!
fos
Incredible support!
fos
- tannewt
- Posts: 3304
- Joined: Thu Oct 06, 2016 8:48 pm
Re: CircuitPython with Feather M0 Express Auto-reload is off
No problem. Sorry I broke it in the first place.
Thanks for posting here about the regression!
~Scott
Thanks for posting here about the regression!
~Scott
Please be positive and constructive with your questions and comments.