atxmega256a3u

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

I have a custom made board using atxmega256a3u microcontroller. My question is how do I communicate to this microcontroller using Amtel Studio 7 through USB port to program my different applications?

K

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

I use an AVRISP mkII.

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

By using any of the supported programmers/debuggers.
I assume you don't have one yet, so I suggest you buy the Atmel ICE. There are three different packages available, the Basic package is the one that's most recommended.

Note that the cheap AVRISP USBASP dongles are not directly support by the Studio. But apparently there's a trick to integrate avrdude into the studio. Google those names to understand what I'm talking about.

"Some people die at 25 and aren't buried until 75." -Benjamin Franklin

 

What is life's greatest illusion?"  "Innocence, my brother." -Skyrim

 

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

Thanks for your response. I do have the AVR-ISP-MKII programmer. What I mostly wanted to do was use the trick of avrdude. I have done this for an Arduino board and was successful by adding it to the External Tools. I am not sure how to go about doing it for the Atxmega256 part. 

K

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

If you just want to program and don't mind the debug part, I use the Olymex ARV-ISP-MK2 (https://www.digikey.ca/product-d...) No hack needed, just hook up to PDI interface and works like a charm.

 

Although, damn, I'd like to get an ICE to be able to do debugging over PDI which the Olymex doesn't do.

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

Kevin, thanks I may have to invest in the ICE because debugging is definitely one thing I need to do. I understand there are different types of ICE programmers will the basic one allow for debugging. Secondly do you have any experience with writing bootloader code from scratch?

 

 

K

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

kekimari9 wrote:
I understand there are different types of ICE programmers will the basic one allow for debugging

I assume that this is a question. The answer is yes, all the Atmel ICE are exactly the same, only the amount of accessories varies.
The PCBA is only the bare PCB, as the name suggests.
The Basic additionally contains a case for the PCB, a USB cable and an adapter cable.
The full kit also contains a second adapter cable an adapter PCB.

"Some people die at 25 and aren't buried until 75." -Benjamin Franklin

 

What is life's greatest illusion?"  "Innocence, my brother." -Skyrim

 

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

Kevin Isabelle wrote:
Although, damn, I'd like to get an ICE to be able to do debugging over PDI which the Olymex doesn't do.
This is a part of the reason I never even started with Xmega's. When I had a (hobby) project for which an AVR was underpowered (TFT display) I scratched my head a lot, and finally decided on ARM Cortex M3. Followed a tutorial from Pandafruits. Got a blinking led working, got a debugger running (On a USD 2 ST-link V2 from Ali) and about there it stranded unfortunately, but that was not the fault of the hardware.

Paul van der Hoeven.
Bunch of old projects with AVR's:
http://www.hoevendesign.com

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

On my side, I did most of the ground work on the atxmega dev board which you can debug directly, no problem. Then, I moved my design to the real board and finished coding. Since I have a screen on my project, I used it to help me debug the thing, but yeah, it is way easier to just use a proper programmer that can debug ;)

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

kekimari9 wrote:
What I mostly wanted to do was use the trick of avrdude. I have done this for an Arduino board and was successful by adding it to the External Tools.
But the point is that if you have AVRISPmkII you don't need to mess around with anything like that. Studio 7 "knows" what an AVRISPmkII is and knows how to drive one so you don't need "kludgey" solutions involving avrdude because you can just use the intrinsic programming facilities built into Studio:

 

http://www.microchip.com/webdoc/...

 

 

However it's true that avrdude.exe also "knows" both AVRISPmkII and PDI so you could set up an "external tool" entry for it just as you did for Arduino but changing the protocol and interface to now be PDI and AVRISPmkII - but what would be the point?

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

Question for you Clawson regarding the ICE programmer: can you confirm that it can debug xmega over PDI?

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

Kevin Isabelle wrote:
Question for you Clawson regarding the ICE programmer: can you confirm that it can debug xmega over PDI?

I'm not Clawson, but think he won't be mad if I answer for him. Yes, the Atmel ICE can debug xmega devices over PDI. I use that feature regularly.

 

Edit: that's the ICE we are talking about, right? http://www.microchip.com/develop...

"Some people die at 25 and aren't buried until 75." -Benjamin Franklin

 

What is life's greatest illusion?"  "Innocence, my brother." -Skyrim

 

Last Edited: Fri. Jan 26, 2018 - 06:08 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Yep that's the one, thanks for the confirmation.

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

"Dare to be naïve." - Buckminster Fuller