Arduino / Atmel-ICE

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

Hello. I have been programming ATMega328P's in my arduino UNO with the Atmel-ICE and Atmel Studio. but without using the bootloader and functions of arduino(programming the registers and using C language in Atmel Studio with the datasheet of the microcontroller). Now my Arduino is unconfigurated and i can not programmate it using "Arduino language"

What i was doing was connecting the Atmel-ICE in the ISP connector of the "front of the board"

I guess that what i need is to burn the bootloader in the main microcontroller(the atmega328p)

So. How may i do it? Can it be done from atmel studio? If it is not the solution wich is?

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

If you don't use arduino features, why do you need a boot loader?
You create a program in C and build it. And write it using Atmel-ICE.
That's all.

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

1.  Install Arduino IDE

2.  Tools->Board: Arduino Uno

3.  Tools->Programmer: ATMEL-ICE

4.  Tools->Burn Bootloader

5.  Remove Programmer from 3x2 ICSP header

6.  Dig deep hole

7.  Bury the external Programmer

8.  The sun will shine,  Angels will sing,  your Arduino will work 100%

 

I use AS7.0 for non-Arduino programs all the time.   I use the Bootloader in AS7.0 (via External Tools menu)

 

The only reason to use an ATMEL-ICE is if you want to use debugWIRE in AS7.0

In which case you must open / close the RESET-EN solder-bridge on a Genuino Uno and follow prompts for enabling / disabling debugWIRE.

 

David.

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

david.prentice wrote:

7.  Bury the external Programmer

8.  The sun will shine,  Angels will sing,  your Arduino will work 100%

 

Pay special attention to the last two tips ;-)

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

Just to point out that Arduino have an alpha release of a "Pro IDE" that is supposed to offer debugging. It's not clear to me how that is achieved (like does it need Atmel-Ice or Snap or something) but it might offer an alternative development environment and may actually offer "best of both worlds".

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

Pigs will fly.

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

david.prentice wrote:

 

I use AS7.0 for non-Arduino programs all the time.   I use the Bootloader in AS7.0 (via External Tools menu)

 

Me too. Setting up avrdude as an external tool is a bit daunting at first, but once it's done, you can easily use the bootloader to program arduino-type hardware. You just need to setup the serial port, it changes from board to board.