CircuitPython with Feather M0 Express Auto-reload is off

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
phi_fibonacci
 
Posts: 23
Joined: Wed Jun 04, 2014 9:15 pm

CircuitPython with Feather M0 Express Auto-reload is off

Post by phi_fibonacci »

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.

User avatar
fos
 
Posts: 97
Joined: Thu May 29, 2014 9:04 pm

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

Post by fos »

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

User avatar
tannewt
 
Posts: 3304
Joined: Thu Oct 06, 2016 8:48 pm

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

Post by tannewt »

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

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.

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

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

Post by phi_fibonacci »

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

Thanks for the prompt response.

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

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

Post by phi_fibonacci »

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

User avatar
tannewt
 
Posts: 3304
Joined: Thu Oct 06, 2016 8:48 pm

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

Post by tannewt »

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

User avatar
fos
 
Posts: 97
Joined: Thu May 29, 2014 9:04 pm

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

Post by fos »

Thanks for the rapid update.

Incredible support!

fos

User avatar
tannewt
 
Posts: 3304
Joined: Thu Oct 06, 2016 8:48 pm

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

Post by tannewt »

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

Thanks for posting here about the regression!

~Scott

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

Return to “Adafruit CircuitPython”