Programming Arduino AVR MCU with Atmel ICE

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

I have a question about programming Arduino with Atmel ICE. I am aware that the Arduino UNO has a ISP connection for ISP programming. If i'm not mistaken I should be able to plug in the ICE and program the Arduino UNO when I choose the method of programming to "Atmel-ICE"?

 

Another reason why I ask his is because I have made a PCB but I believe I may have made a mistake around the RESET pin. I am trying to program the attiny2313A with Ardunio code but am having trouble. This my connection from ISP to MCU

I have programmed this MCU though Atmel studio and can confirm I can program the chip though ISP with Atmel studio but NOT Arduino. I have also broke out the RX and TX pins to try and program with FTDI chip but I have not but a capacitor in series with the RESET line.

If possible I would really like to program with ISP. I have got the ATting files for programing for the following link on github :https://github.com/SpenceKonde/ATTinyCore/find/master ATting2313 Arduino Files (Look at ReadMe)

 

Any help would be great, I'm really stuck.

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

C5 and C7 should be 22pF. 22uF is wrong.
Otherwise your schematic "looks" ok.
.
Since you have the ATMEL-ICE connnected you should read the fuses in AS7.0 and report back.
.
Note that the programmer must always be powered if connected to the 2313. i.e. leave the programmer USB cable plugged in or remove the 3x2 ribbon when finished.

Last Edited: Sun. Sep 13, 2020 - 07:06 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Ah yes sorry C5 and C7 is a typo on my part as they are definitely 22pf as the MCU is oscillating at 16MHZ, which I have confirmed with setting the fuse bits.

Sorry what is it you mean by AS.7 furs bits?

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

I have programmed this MCU though Atmel studio and can confirm I can program the chip though ISP with Atmel studio but NOT Arduino.

Please report the Signature and Fuse values.   

Program a HEX file.  Verify.

 

If AS7.0 (Atmel Studio 7.0) works 100% the Arduino should work too.

 

Your schematic implies that you have a proper soldered 3x2 ISP header.

So the ATMEL-ICE ribbon should mate as Nature intended.

 

David.

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


Hi David,

 

This i was I currently have listed under "Fuses".