Uploading Arduino bootloader on a new micro-controller // With J-Link SEGGER, SWD for MCU SAMD21G
#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 https://s.click.aliexpress.com/e/_AZG8aU
🎩 DEMO FILES
https://hutscape.com/pine/examples/arduino-bootloader-samd21g
🔗 LINKS SHOWN
LCSC part for SAMD21G https://lcsc.com/product-detail/ATMEL-AVR_Microchip-Tech-ATSAMD21G18A-AU_C78624.html
Serial Wire Debug https://developer.arm.com/architectures/cpu-architecture/debug-visibility-and-trace/coresight-architecture/serial-wire-debug
SAMD21 Datasheet https://cdn.sparkfun.com/datasheets/Dev/Arduino/Boards/Atmel-42181-SAM-D21_Datasheet.pdf
SAMD21 Mini/Dev Breakout Hookup Guide https://learn.sparkfun.com/tutorials/samd21-minidev-breakout-hookup-guide/all
SparkFun SAMD21 Breakout board schematic https://cdn.sparkfun.com/datasheets/Dev/Arduino/Boards/sparkfun-samd21-pro-breakout-v10.pdf
Arduino Zero schematic https://content.arduino.cc/assets/ArduinoZeroV4.0_sch.pdf
RobotDyn M0 schematic https://robotdyn.com/pub/media/0G-00005516==SAMD21-MINI/DOCS/Schematic==0G-00005516==SAMD21-MINI.pdf
SWD vs JTAG: Similarities & Differences Explained https://embeddedinventor.com/swd-vs-jtag-differences-explained/
J-Link Debug probe https://www.segger.com/products/debug-probes/j-link/
J-Link SEGGER Model overview https://www.segger.com/products/debug-probes/j-link/models/model-overview/
Arduino Core for SAMD21 bootloader https://github.com/arduino/ArduinoCore-samd/tree/master/bootloaders/zero
Pogo pin connector https://www.instructables.com/id/Pogo-Pin-Programming-Connector/
J-Link Edu Mini https://www.segger.com/products/debug-probes/j-link/models/j-link-edu-mini/
Adafruit Adalink https://github.com/adafruit/Adafruit_Adalink
OpenOCD http://openocd.org/about/
ST-Link https://www.st.com/en/development-tools/st-link-v2.html
🔌 TOOLS USED
https://hutscape.com/tools
Видео Uploading Arduino bootloader on a new micro-controller // With J-Link SEGGER, SWD for MCU SAMD21G канала Sayanee Basu
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 https://s.click.aliexpress.com/e/_AZG8aU
🎩 DEMO FILES
https://hutscape.com/pine/examples/arduino-bootloader-samd21g
🔗 LINKS SHOWN
LCSC part for SAMD21G https://lcsc.com/product-detail/ATMEL-AVR_Microchip-Tech-ATSAMD21G18A-AU_C78624.html
Serial Wire Debug https://developer.arm.com/architectures/cpu-architecture/debug-visibility-and-trace/coresight-architecture/serial-wire-debug
SAMD21 Datasheet https://cdn.sparkfun.com/datasheets/Dev/Arduino/Boards/Atmel-42181-SAM-D21_Datasheet.pdf
SAMD21 Mini/Dev Breakout Hookup Guide https://learn.sparkfun.com/tutorials/samd21-minidev-breakout-hookup-guide/all
SparkFun SAMD21 Breakout board schematic https://cdn.sparkfun.com/datasheets/Dev/Arduino/Boards/sparkfun-samd21-pro-breakout-v10.pdf
Arduino Zero schematic https://content.arduino.cc/assets/ArduinoZeroV4.0_sch.pdf
RobotDyn M0 schematic https://robotdyn.com/pub/media/0G-00005516==SAMD21-MINI/DOCS/Schematic==0G-00005516==SAMD21-MINI.pdf
SWD vs JTAG: Similarities & Differences Explained https://embeddedinventor.com/swd-vs-jtag-differences-explained/
J-Link Debug probe https://www.segger.com/products/debug-probes/j-link/
J-Link SEGGER Model overview https://www.segger.com/products/debug-probes/j-link/models/model-overview/
Arduino Core for SAMD21 bootloader https://github.com/arduino/ArduinoCore-samd/tree/master/bootloaders/zero
Pogo pin connector https://www.instructables.com/id/Pogo-Pin-Programming-Connector/
J-Link Edu Mini https://www.segger.com/products/debug-probes/j-link/models/j-link-edu-mini/
Adafruit Adalink https://github.com/adafruit/Adafruit_Adalink
OpenOCD http://openocd.org/about/
ST-Link https://www.st.com/en/development-tools/st-link-v2.html
🔌 TOOLS USED
https://hutscape.com/tools
Видео Uploading Arduino bootloader on a new micro-controller // With J-Link SEGGER, SWD for MCU SAMD21G канала Sayanee Basu
Показать
Комментарии отсутствуют
Информация о видео
Другие видео канала
Remote Debugging ARM Chip with SWD/JTAG - Hardware Wallet Research #3Getting Started with PlatformIODesign considerations for transferring a breadboard prototype to custom PCB // Arduino, mcu, sensorsWhat Really Happened at the Hernando de Soto Bridge?Update Jlink clone to latest versionEEVblog #499 - What is JTAG and Boundary Scan?Arduino firmware on ATmega328p or SAMD21DIY Arduino RC Receiver | Radio Control for RC Models and Arduino ProjectsArduino vs Raspberry Pi - Which Board is Best For You?The Mystery Flaw of Solar PanelsWhat Really Happened at the Arecibo Telescope?SAMD21G Mangler - Part1 - From concept to PCB design#03 - How To Find The JTAG Interface - Hardware Hacking TutorialUsing Keypads with Arduino - Build an Electronic LockSegger JLink ProbeHow to Flash/Re-flash a Bootloader on an Arduino Nano#370 Raspberry Pi Pico vs ESP32 (-S2) and STM32 BlackpillMiniature PCB Design | STM32 + Magnetometer + CAN | AltiumSTM32 Nucleo 144: J-Link ReflashYou can learn Arduino in 15 minutes.