Programming the Feather M0
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- RMChadwell
- Posts: 6
- Joined: Mon May 23, 2022 2:41 pm
Programming the Feather M0
I followed the instructions in the article "Adafruit I2S MEMS Microphone Breakout" but after assembling the Feather M0/MEMS mic breakout circuit, I am now stuck at the I2S Library (page 9). Also note that when I plug the circuit into the USB port of my Windows 10 PC, I see the red and yellow LEDs on the Feather M0 flash, then the green LED flashes, over and over...also this new "device" doesn't appear in the Windows Device Manager---does that indicate a problem? Next, how do I download the I2S Library to my Windows PC, so that I can use the plotter software depicted on page 9? Do I need a JAVA compiler to use this code? AND, once I get the code compiled, how do I upload it to the Feather M0...I assume that is done thru the USB port connection. I do have programming experience, but not with JAVA or PYTHON, which is what I am guessing the source code shown on pages 9 thru 14 actually is...correct? Please advise.
- mikeysklar
- Posts: 13936
- Joined: Mon Aug 01, 2016 8:10 pm
Re: Programming the Feather M0
Let's start with the device (Feather M0) being detected by Windows.
Does a drive appear? How about when you double-tap the reset key? Is any device detected or drive appear?
If you are not seeing any USB device in the device manager or mounted then it is likely that you are using a USB charge cable, but you need a USB data cable.
Does a drive appear? How about when you double-tap the reset key? Is any device detected or drive appear?
If you are not seeing any USB device in the device manager or mounted then it is likely that you are using a USB charge cable, but you need a USB data cable.
- RMChadwell
- Posts: 6
- Joined: Mon May 23, 2022 2:41 pm
Re: Programming the Feather M0
What I see when it is plugged in under "Devices and Printers" is the Feather M0...so my mistake, it IS recognized...I just didn't know where to look! Do you know what it means when after it is plugged in, the red and yellow LEDs on the Feather M0 flash together, followed by the green LED flashing alone...which just repeats over and over?
- mikeysklar
- Posts: 13936
- Joined: Mon Aug 01, 2016 8:10 pm
Re: Programming the Feather M0
If your Feather M0 came with CircuitPython installed it can mean a software error occurred and the device is in safe mode.
https://learn.adafruit.com/adafruit-fea ... 2978455-21
Were you able to setup the Arduino IDE so that you can upload your code to the Feather M0?
https://learn.adafruit.com/adafruit-fea ... -ide-setup
Code: Select all
2 RED blinks: Code ended due to an exception. Check the serial console for details.
3 YELLOW blinks: CircuitPython is in safe mode. No user code was run. Check the serial console for safe mode reason.
Were you able to setup the Arduino IDE so that you can upload your code to the Feather M0?
https://learn.adafruit.com/adafruit-fea ... -ide-setup
- RMChadwell
- Posts: 6
- Joined: Mon May 23, 2022 2:41 pm
Re: Programming the Feather M0
OK, the Red/Yellow LEDs blink once then goes off, followed by a green LED blink...repeats for eternity. So I don't see how it can be a software exception...you tell me? Also, the Feather M0 was sold as: "Adafruit (PID 3010 Feather M0 WiFi - ATSAMD21 + ATWINC1500)," so I don't know what software was included beyond the add saying it uses an Arduino OS---Details:
* A highly-capable Cortex M0+ processor with ton more I/O pins, lots of 12-bit ADCs, a 10-bit DAC, 6 total SERCOMs that can each do SPI, I2C or UART (3 are used by the existing interfaces, leaving you 3), plenty of timers, PWMs, DMA, native USB, and more.
* The ATWINC has much lower power usage, about 12mA for the WINC & 10mA for the ATSAMD21 with auto-power management on for the WiFi and no power management for the ARM.
* Stream more reliably (less 'bursty') with the ATWINC.
I am trying to use the Feather M0 with a MEMS mic, if that helps.
* A highly-capable Cortex M0+ processor with ton more I/O pins, lots of 12-bit ADCs, a 10-bit DAC, 6 total SERCOMs that can each do SPI, I2C or UART (3 are used by the existing interfaces, leaving you 3), plenty of timers, PWMs, DMA, native USB, and more.
* The ATWINC has much lower power usage, about 12mA for the WINC & 10mA for the ATSAMD21 with auto-power management on for the WiFi and no power management for the ARM.
* Stream more reliably (less 'bursty') with the ATWINC.
I am trying to use the Feather M0 with a MEMS mic, if that helps.
- RMChadwell
- Posts: 6
- Joined: Mon May 23, 2022 2:41 pm
Re: Programming the Feather M0
My other issue is how to set up the Arduino IDE. I need to know is that done so that I can upload code to the Feather M0, which I now think may be functioning properly.
- RMChadwell
- Posts: 6
- Joined: Mon May 23, 2022 2:41 pm
Re: Programming the Feather M0
I'm also guessing that I need to get a "CircuitPython" compiler...correct?
- mikeysklar
- Posts: 13936
- Joined: Mon Aug 01, 2016 8:10 pm
Re: Programming the Feather M0
You have a choice if you wish to run CircuitPython or the Arduino IDE. This is well documented on the Feather M0 learning guide.
https://learn.adafruit.com/adafruit-fea ... asic-proto
https://learn.adafruit.com/adafruit-fea ... asic-proto
- jwinslade
- Posts: 44
- Joined: Fri May 21, 2021 12:00 pm
Re: Programming the Feather M0
I've found that loading CircuitPython on the M0 leaves you almost no space left for applications.mikeysklar wrote:You have a choice if you wish to run CircuitPython or the Arduino IDE. This is well documented on the Feather M0 learning guide.
https://learn.adafruit.com/adafruit-fea ... asic-proto
- RMChadwell
- Posts: 6
- Joined: Mon May 23, 2022 2:41 pm
Re: Programming the Feather M0
Thanks to mikeysklar and jwinslade, I think I have enough info to accomplish my Feather M0 project! Much appreciated!
Please be positive and constructive with your questions and comments.