You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
2. Remove the Adafruit SAMD board support package if you have installed it
14
+
3. make a folder in your ArduinoSketchFolder called "hardware", then make a folder "hardware/Adafruit"
15
+
4. in "hardware/Adafruit" git clone https://github.com/adafruit/ArduinoCore-samd, and rename the folder "samd"
16
+
5. Check you now have "ArduinoSketcheFolderName/hardware/Adafruit/samd/boards.txt"
17
+
6. git checkout samd51 from within the cloned repo, and check boards.txt contains "# Adafruit Metro M4 (SAMD51)"
18
+
7. Now we need to update CMSIS! Download https://github.com/adafruit/ArduinoModule-CMSIS-Atmel/archive/master.zip and unzip
19
+
8. Find your Arduino CMSIS, in Mac its "~/Library/Arduino15/packages/arduino/tools/CMSIS-Atmel/1.1.0/CMSIS" version # may vary, you'll need "Go to folder..." feature in the Finder to get to " ~/Library/Arduino15" as it is hidden. In Windows it is "C:\Users\yourusername\AppData\Local\Arduino15\packages\arduino\tools\CMSIS-Atmel\1.1.0\CMSIS" Inside is a folder named Device
20
+
21
+
For Linux: the Arduino stuff is located in ~/.arduino15/packages/arduino/tools/CMSIS-Atmel/1.1.0/CMSIS
22
+
23
+
9. Inside the downloaded CMSIS zip, go into the CMSIS-Atmel/CMSIS folder, you should see a folder named Device. *DRAG THE DEVICE FOLDER ONLY* from the zip to your arduino Library folder so that Device is merged with Device. It will replace a bunch of files.
24
+
25
+
For Linux, it may be better to just delete the original Device Folder then copy over the new one - the drag/drop worked ok on MACOS, but not so well on my Linux box.
26
+
27
+
10. You will also need to replace bossac. For Windows or Mac: Go here https://github.com/adafruit/BOSSA/releases and download either windows exe or mac app of latest bossac. unzip. Go to Step 12.
28
+
29
+
For Linux users it is best to build a copy of bossac locally -
30
+
clone the Adafruit Repostitory to somewhere on your local machine.
Follow the instructions to build bossac in README.md or at https://github.com/adafruit/BOSSA/tree/arduino.
37
+
38
+
11. Replace the binary at ".../Library/Arduino15/packages/arduino/tools/bossac/1.7.0/bossac" or "...\AppData\Local\Arduino15\packages\arduino\tools\bossac\1.7.0\bossac"
39
+
12. On Windows 7 you will also need to install the updated serial driver, download https://github.com/adafruit/Adafruit_Windows_Drivers/archive/master.zip to get all the drivers, and point the Device Manager to the unzipped folder. It isn't signed, so just approve the installation manually.
40
+
13. That's it!
13
41
14
42
## Bugs or Issues
15
43
44
+
## Known Issues for SAMD51:
45
+
* AREF must be tied to 3.3V for dac to work. This is a bug in the SAMD51 silicon.
46
+
* USB host mode doesn't work yet
47
+
16
48
If you find a bug you can submit an issue here on github:
0 commit comments