Загрузка страницы

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
Показать
Комментарии отсутствуют
Введите заголовок:

Введите адрес ссылки:

Введите адрес видео с YouTube:

Зарегистрируйтесь или войдите с
Информация о видео
18 июля 2020 г. 13:24:57
00:14:01
Яндекс.Метрика