Can I use atprogram.exe with an Xplained Pro D21?

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

Here's what I get when I list my devices (BTW, I couldn't find where the list command was documented)
 

C:\Program Files (x86)\Atmel\Studio\7.0\atbackend>atprogram list
simulator       No serialnumber found
edbg            ATML2130031800039366

 

And then here's the command line I try:

C:\Program Files (x86)\Atmel\Studio\7.0\atbackend>atprogram -t edbg -i SWD -d ATML2130031800039366 -v program -c -f Flasher.elf
[DEBUG] Starting execution of "program"
[DEBUG] Starting process 'C:\Program Files (x86)\Atmel\Studio\7.0\atbackend\atbackend.exe'
[DEBUG] Connecting to TCP:127.0.0.1:62503
[INFO] Connected to edbg, fw version: 3.25
Firmware check OK
[INFO] Firmware check OK
[ERROR] Could not set device properties. Make sure you have selected correct device and interface, and that the hardware connections are correct.

 

 

This topic has a solution.
Last Edited: Mon. Jan 10, 2022 - 10:46 PM
This reply has been marked as the solution. 
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 1

-d atsamd21j18a

 

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


As ezharkov says,  the -d option is the Device Name of the chip that you are programming;

 

-s is the option to specify the programmer/debugger serial number:

 

 

You only need to specify the programmer/debugger serial number when there is more than one to choose from.

Top Tips:

  1. How to properly post source code - see: https://www.avrfreaks.net/comment... - also how to properly include images/pictures
  2. "Garbage" characters on a serial terminal are (almost?) invariably due to wrong baud rate - see: https://learn.sparkfun.com/tutorials/serial-communication
  3. Wrong baud rate is usually due to not running at the speed you thought; check by blinking a LED to see if you get the speed you expected
  4. Difference between a crystal, and a crystal oscillatorhttps://www.avrfreaks.net/comment...
  5. When your question is resolved, mark the solution: https://www.avrfreaks.net/comment...
  6. Beginner's "Getting Started" tips: https://www.avrfreaks.net/comment...
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

BTW, I couldn't find where the list command was documented

atprogram help list

:: Morten

 

(yes, I work for Microchip, yes, I do this in my spare time, now stop sending PMs)

 

The postings on this site are my own and do not represent Microchip’s positions, strategies, or opinions.

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


meolsen wrote:
atprogram help list

Indeed:

 

Top Tips:

  1. How to properly post source code - see: https://www.avrfreaks.net/comment... - also how to properly include images/pictures
  2. "Garbage" characters on a serial terminal are (almost?) invariably due to wrong baud rate - see: https://learn.sparkfun.com/tutorials/serial-communication
  3. Wrong baud rate is usually due to not running at the speed you thought; check by blinking a LED to see if you get the speed you expected
  4. Difference between a crystal, and a crystal oscillatorhttps://www.avrfreaks.net/comment...
  5. When your question is resolved, mark the solution: https://www.avrfreaks.net/comment...
  6. Beginner's "Getting Started" tips: https://www.avrfreaks.net/comment...