Manage the Adafruit Feather M0 and M4 boards¶
Install¶
To install the Adafruit Feather M0 and M4 boards,
-
Ensure the Arduino tools, CLI or IDE, are installed.
-
Ensure the
arduino-cli.yaml
configuration file for Arduino-CLI or the Additional boards manager URLs for Arduino IDE includes
https://adafruit.github.io/arduino-board-index/package_adafruit_index.json
-
Open a Terminal window.
-
Run
$ |
|
For more information on the Feather M0,
- Please refer to the section Arduino IDE Setup .
For more information on the Feather M4,
- Please refer to the section Arduino IDE Setup .
For debugging against the Feather M0 and M4, use the Segger J-Link emulator.
For more information,
- Please refer to the section Install utilities for Segger debugger and to the page Proper Debugging of ATSAMD21 Processors on the Adafruit website.
Develop¶
Use the libraries for WiFi¶
Use the libraries for Bluetooth¶
Use the libraries for SD¶
Upload¶
For the Adafruit Feather M0 and M4 boards, Adafruit offers two options to upload the executable to the boards.
The first option is the standard upload procedure through serial over USB.
The second option, called UF2 for USB Flashing Format, turns the board into a mass storage device. Programming is done with a simple drag-and-drop or copy of the executable onto the mass storage device.
Upload using standard USB¶
Before uploading using the standard USB procedure,
-
Plug the Adafruit board in.
-
Check the LED on the board is green.
-
Otherwise, double-press the Reset button on the board to enter boot-loader mode.
For more information,
- Please refer to the page Manually bootloading .
Upload using UF2¶
For the Adafruit Feather M0 and M4 boards, this drag-and-drop procedure requires a specific format. The executable needs to be converted into a .uf2
file. The utility for the conversion is provided by the Adafruit nRF52 boards package.
To install the Adafruit nRF52 boards package,
- Please refer to Install the Adafruit platform section.
Before uploading,
-
Plug the Adafruit board in.
-
Check a volume called
FEATHERBOOT
is shown on the desktop. -
Otherwise, double-press the Reset button on the board to activate it.
-
Check the LED on the board is green.
For more information on the Feather M0 and the UF2 boot-loader,
- Please refer to the pages UF2 Bootloader Details , Installing the UF2 Bootloader , UF2 Bootloader Details and Updating the boot-loader .
For more information on the Feather M4 and the UF2 boot-loader,
- Please refer to the pages UF2 Bootloader Details , Entering Bootloader Mode and Manually bootloading .
Debug¶
The Adafruit Feather M0 exposes the SWD signals through SWCLK and SWDIO pads and the Adafruit Feather M4 through a 2x5 0.05” connector.
Cables and pins should be soldered to connect the Segger J-Link programmer-debugger.
For more information on how to prepare the boards,
- Please refer to Segger J-Link with Adafruit Feather M4 .