Requirements and Hardware to program ARM32 MCUs

Go To Last Post
8 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I want to build my own board with the ATSAMD21J18A microcontroller but I am a begginer and I have some questions related to programming.

 

The XPLAINED PRO BOARD has their own circuit programmer to programm the main microcontroller through USB. To do the same on my board I know I need the Atmel ICE and access to the SWD pins of the microcontroller. 

 

However I would like to kown if it is possible program the micro through USB with USB_DP/DM pins.

 

Any comments or suggestions are appreciated.

 

Thank you.

This topic has a solution.
Last Edited: Wed. Sep 4, 2019 - 11:57 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 1

You need to load a bootloader. You need an Atmel ICE or other suitable debug interface.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Thank you for answer me, Kartman.

 

But using an Atmel ICE (or similar) is mandatory enable the SWD pins, right? 

 

In addition, can you tell me more about the bootloader that I need?

 

Thank you again.

This reply has been marked as the solution. 
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 1

Yes, the SWD pins are required - at least until you get the bootloader loaded.

 

As for the required bootloader - depends on exactly what you want. I'd be asking Mr Google - something like Google samd21 bootloader

 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Okey, thank you for your help. Now I understand much better how I should do it.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

There is an example ASF project of SAM-BA bootloader project in Atmel studio, googling bootloader will just mislead you since all the application notes and search results are pathetic and hopeless(since the support from Microchip makes you kill yourself). Then you need bootloader GUI to program via USB. 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi guys!

Can I use EDBG on SAML21 Xplained Board for programming/debugging my own board with the ATSAML21G microcontroller?

Thanks!

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

What does the documentation say?