Переглядів 21,344
#samd21g #bootloader #arduino
We will take a bare microcontroller on a custom PCB to upload the Arduino bootloader so that we can flash in an Arduino firmware. In this case, we will use the MCU, ATSAMD21G, and explore how to upload the bootloader through the SWD protocol with the J-Link SEGGER programmer. We will also learn how to create the bootloader file for a crytstalless option board and then test the entire upload with a blinky firmware. It is also important to note that there can be other methods to upload the bootloader file. I tried to use the ST-Link (on STM32 Discovery Board) with OpenOCD and J-Link Edu Mini but I was unsuccessful.
⏰ TIMESTAMPS
0:00 Intro
00:37 ATSAMD21G micro-controller
01:20 Serial Wire Debug protocol (SWD)
01:54 Pin connections - Power, ground, reset, LEDs, SWD
04:18 J-Link SEGGER Programmer
05:34 Create bootloader file
09:02 Hello World blinky firmware
11:43 Other options: ST-Link with OpenOCD and J-Link Edu Mini
‣ Some links below are affiliate. I receive a small commission at no extra cost to you.
📻 PRODUCTS MENTIONED
RobotDyn SAMD21 M0 Mini s.click.aliexpress.com/e/_AZG8aU
🎩 DEMO FILES
hutscape.com/tutorials/arduin...
🔗 LINKS SHOWN
LCSC part for SAMD21G lcsc.com/product-detail/ATMEL...
Serial Wire Debug developer.arm.com/architectur...
SAMD21 Datasheet cdn.sparkfun.com/datasheets/D...
SAMD21 Mini/Dev Breakout Hookup Guide learn.sparkfun.com/tutorials/...
SparkFun SAMD21 Breakout board schematic cdn.sparkfun.com/datasheets/D...
Arduino Zero schematic content.arduino.cc/assets/Ard...
RobotDyn M0 schematic robotdyn.com/pub/media/0G-000...
SWD vs JTAG: Similarities & Differences Explained embeddedinventor.com/swd-vs-j...
J-Link Debug probe www.segger.com/products/debug...
J-Link SEGGER Model overview www.segger.com/products/debug...
Arduino Core for SAMD21 bootloader github.com/arduino/ArduinoCor...
Pogo pin connector www.instructables.com/id/Pogo...
J-Link Edu Mini www.segger.com/products/debug...
Adafruit Adalink github.com/adafruit/Adafruit_...
OpenOCD openocd.org/about/
ST-Link www.st.com/en/development-too...
📹 PRODUCTION GEAR AND TOOLS
Davinci Resolve 16.2 for video editing
iPhone 11 for recording video
QuickTime for recording laptop screen
Microphone Audio Technica ATR2100-USB for voice recording www.amazon.com/Audio-Technica...
IKEA TERTIAL Work lamp stand hacked as a microphone stand www.ikea.com/sg/en/p/tertial-...
Tripod SLIK SDV-10iPhone holder Xiletu XJ-8 www.amazon.com/XILETU-Mobile-...
Ipevo CDVU-03IP 2 megapixel Point 2 View USB Camera www.amazon.com/Ipevo-CDVU-03I...
dotfiles for terminal configuration github.com/sayanee/dotfiles