Update Legacy Feather M0 w/LoRa to CircuitPython

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
RocketScientist
 
Posts: 88
Joined: Wed Jan 11, 2017 11:43 pm

Update Legacy Feather M0 w/LoRa to CircuitPython

Post by RocketScientist »

I have a couple year old Feather M0 w/ LoRa. I would like to update it to run CircuitPython. I can't seem to get it into boo loader mode to do so.

Instructions seem .... contradictory?

Help?

User avatar
dastels
 
Posts: 15653
Joined: Tue Oct 20, 2015 3:22 pm

Re: Update Legacy Feather M0 w/LoRa to CircuitPython

Post by dastels »

There's no UF2 bootloader on that board as shipped. Please see https://learn.adafruit.com/installing-c ... d21-boards for instructions, as well as https://learn.adafruit.com/adafruit-fea ... rfm9x-lora.

Dave

User avatar
RocketScientist
 
Posts: 88
Joined: Wed Jan 11, 2017 11:43 pm

Re: Update Legacy Feather M0 w/LoRa to CircuitPython

Post by RocketScientist »

Yup. Tried those. No joy.

But it appears I have a larger problem. I can't seem to run Python programs on either ItsyBitsy M0 or M4 that import the "board" library. Not found. I suspect related.

I am running on Thonny on a MacOS M1 MacBook Air. I seem unable to run on these processors. I have successfully used Thonny to run Python programs on various Raspberry Pis under Raspian.

K

User avatar
dastels
 
Posts: 15653
Joined: Tue Oct 20, 2015 3:22 pm

Re: Update Legacy Feather M0 w/LoRa to CircuitPython

Post by dastels »

If it can't find the board module, then it isn't running in CircuitPython (i.,e. on the board); it's running on cpython in Windows, Linux, etc.

Dave

User avatar
RocketScientist
 
Posts: 88
Joined: Wed Jan 11, 2017 11:43 pm

Re: Update Legacy Feather M0 w/LoRa to CircuitPython

Post by RocketScientist »

Yup. Was just coming to that realization. How do I force execution on the MPU?

User avatar
dastels
 
Posts: 15653
Joined: Tue Oct 20, 2015 3:22 pm

Re: Update Legacy Feather M0 w/LoRa to CircuitPython

Post by dastels »

You have to copy the code file to the CIRCUITPY drive. That's it. To see it run you'll need to connect to it via USB/Serial. Telnet, screen, minicom, will do the job as well as the REPL/Serial pane in Mu.

Dave

User avatar
RocketScientist
 
Posts: 88
Joined: Wed Jan 11, 2017 11:43 pm

Re: Update Legacy Feather M0 w/LoRa to CircuitPython

Post by RocketScientist »

OK. Moved to Mu editor. Set mode for circuitypy

It seems I am editing the file on the CIRCUITPY drive ... but I now get a message saying "Could not find attached device".

I am finding this for a series of boards ... an ItsyBitsy M0 Express and an ItsyBitsy M4 Express. Getting same error. I can edit files on the CIRCUITPY drive but I can't seem to get them to execute. I try reset .. and get a small blinking green LED.

I can save/load files ...

User avatar
RocketScientist
 
Posts: 88
Joined: Wed Jan 11, 2017 11:43 pm

Re: Update Legacy Feather M0 w/LoRa to CircuitPython

Post by RocketScientist »

An update. Using Mu Editor on my MacBook Air M1 ... I can't seem to get a serial REPL connection to any board.

Using Mu Editor under Win10 Preview for ARM under Parallels on the M1, it seems to work.

Methinks there is a bug.

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

Return to “Adafruit CircuitPython”