JTAGICE MKii to program ATSAMR30 device ?

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

Hello, 

I am designing SAMR30 board and I have JTAGICE MKii programmer. I want to know whether we can program JTAGICE  MKii using JTAG interface? 

I am in the middle of drawing PCB for SAMR30 and then stuck on the programming connector since I do not want to buy another tool for this. 

I tried using ATMEL studio and when i select JTAGICE MKii ATSAM processor isnt listed. Also I have noticed that we can use atprogram.exe to flash directly to device.

looking for advice whether i can program using atprogram.exe using JTAGICE MKii with JTAG connector to my target SAMR30 board. 

Thanks 

Bobby 

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

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

Surely any ARM debugger can program your SAMR30.   The important thing is to mount the standard 5x2 JTAG header.    (which is very small 1.27mm)

 

The JTAGICE-mkII can program AVR and UC32

The ATMEL-ICE can program AVR, UC32 and ARM and supports many debug protocols.

 

All ARM Cortex devices can use SWD or JTAG interface from the 5x2 header.    SWD does not need many pins and you often find non-standard SWD header using 2.54mm spacing.    ARM debugger/programmers are incredibly cheap and come for "free" on most ARM dev boards.

 

David.   

Last Edited: Mon. Jul 16, 2018 - 08:28 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi David, 

Thanks for the answer. My understanding from your answer is I can't program ATSAMR30 device using JTAGICE mkII tool. Am I right ?

Thank you

Bobby 

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

Not unless someone from Microchip releases the firmware.

 

If ARM debuggers were expensive a third party might hack the mkII.

A STLink dongle costs about $2.   You should be able to use it on the SAMR30 but I have never tried.

 

Obviously you use a "neutral" IDE like Keil or Rowley.    Manufacturer owned IDEs like AS7 will only support their own chips.

Debugger manufacturers like JLink do not mind what make of chip is used.

 

Any CMSIS-DAP debugger should work with any Cortex chip.

 

I might try the STLink with a non-ST target later.    Just to see if I have been writing Trump.

 

David.

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

david.prentice wrote:
A STLink dongle costs about $2

Well, $2 for a cheap Chinese clone:

Image result for st-link

 

about $20 for the genuine article:

Image result for st-link

 

 

Not sure that I've ever had a problem with a cheap Chinese clone that was fixed by using the genuine article ... ?

 

Note that the pinout of the cheap Chinese clones is not standardised and I have seen different pinouts in different orders!

 

surprise

 

I might try the STLink with a non-ST target later.

Many on the Nordic forum report success using an ST-Link with their devices.

 

I guess that's mainly for programming - debugging may be more "interesting" ... 

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

bobmyan wrote:
My understanding from your answer is I can't program ATSAMR30 device using JTAGICE mkII tool. Am I right ?

Again, what does the documentation tell you?

 

https://www.microchip.com/webdoc/jtagicemkii/jtagicemkii.preface.html

 

There's a clue in the name:

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

Hi awneil, 

Yes I know the tool documentation... I am getting advise whether any 3rd party program or atmel  program that can flash using the JTAG standard interface. 

Will checkout those clone tools

Thanks! 

Bobby

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

Yes,  it should be possible to program the Flash using primitive JTAG commands.    I am sure that someone has done it.

 

It just seems more trouble to seek out the 3rd party than to just buy an ARM debugger.

 

David.

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

Success programming SAMD10 via STLink clone is reported here: https://www.avrfreaks.net/commen...

 

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...