[TUT] [HARD] AVR Programming Methods

Go To Last Post
76 posts / 0 new

Pages

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

Please post this question in the proper forum rather than hijacking someone else's thread.

Regards,
Steve A.

The Board helps those that help themselves.

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

Hi Dean,
I am new to ATMEL AVRs and I found SPI-programming, which is a nice idea, but can't find it in your list ...
I have to use the ATiny167 chip and I want to buy the AVRONE, so can I program my chip (in circuit on my board) with this tool or not?
Where can I get information about neccessary hardware requirements of my target board to savly using one of this programming modes, preverable the modes my ATiny167 and the AVRONE will have in commen.

Thanks for helping

Gerhard

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

SPI is the physical transport, but that kind of programming is called ISP, which pretty much every programmer can do.

For a list of supported devices for each interface on each programmerr, check the Tools guide in AVRStudio's help menu.

- Dean :twisted:

Make Atmel Studio better with my free extensions. Open source and feedback welcome!

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

The ATtiny167 is a very unusual choice of AVR.
You might find a ATmeg328P to be suitable for most applications.

Yes, The AVRONE will program any chip.
It is a very expensive device.

Download the data sheet and manual. You will need them anyway.

Once you have those documents, you can quote the paragraphs that you do not understand.

David.

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

Hi David,
ok, I need a device which has a I2C interface to read out some sensors and a LIN interface for longer distance communication and it has to be cheap.
Any idea?

Thanks a lot

Gerhard

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

Hi David,

found now ATmega16/32/64/M1 but seems a little bit like shooting with a canon for little birds ...

Thanks a lot

With best regards

Gerhard

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

Hi, I still have a doubt about programming. I can power my system from some programmers, some programmers from my system or power them seprately. What happens if i use a 5V powered programmer (USB?) on a 3V3 system or vice versa? I think there are programmers that can detect system's voltage and scale the programming signal accordingly, What programmer should I choose to work with various designs running at different voltage levels?

GMM

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

Quote:

What happens if i use a 5V powered programmer (USB?) on a 3V3 system or vice versa? I think there are programmers that can detect system's voltage and scale the programming signal accordingly, What programmer should I choose to work with various designs running at different voltage levels?


All the Atmel programmers listed in the first post of this thread have voltage level adaptation circuitry so can program targets whether they are 3.3V or 5.0V powered. Most of the devices here will NOT power the target - you must do that separately - their headers only have "VTG" in order to sense the target voltage so they can adapt.

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

Hello, I'm little confused. Let's say for USBtinyISP AVR Programmer (http://www.micro4you.com/store/programmers/avr/usbtinyisp-avr-programmer.html). Product's description refers to (http://dicks.home.xs4all.nl/avr/usbtiny/)
So my question is:

Besides,
(1) burning the bootloader in an AVR that supports bootloader, by connecting USBtinyISP AVR Programmer to (e.g.) Arduino board, and
(2) Parallel Programming of an AVR using USBtinyISP AVR Programmer and a Parallel Programmer,
(3) Can we use USBtinyISP AVR Programmer to Serial Programmming an ATmega328P (without bootloader) as described in "http://www.atmel.com/dyn/resources/prod_documents/doc8025.pdf" page 304, par. 28.8 (figure 28-7)
and to Low-Voltage Serial Programming an ATtiny15L as descrided in "http://www.atmel.com/dyn/resources/prod_documents/doc1187.pdf" page 59, (figure 33) ???
If yes, do we need something else, too? (except the USBtinyISP AVR Programmer)

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

The Low-Voltage serial downloading is just another name for ISP (and/or vice-versa). The USBtinyISP can do only ISP programming, but that means it can burn in applications and bootloaders into the ATTINY15L.

The USBtinyISP does not support TPI, PDI, JTAG, dW or any other programming methods besides ISP.

- Dean :twisted:

Make Atmel Studio better with my free extensions. Open source and feedback welcome!

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

Hi all.
I am searxhing for a boot-loader/firmware for atmega8535. The MC had a bootloader, it sadly is do not have a regular VID = 0x05c (expected VID for usbasp). So I need to re-flash it with a new firmware.
Where can I get it?. I tried http://www.fischl.de/usbasp/. But sadly it don't have bootloader for my atmega8535.

So where can I get a correct firmware?

M a newbie.

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

Quote:

But sadly it don't have bootloader for my atmega8535.

So where can I get a correct firmware?


You'll have to get the source from the Fischl site and build it for m8535 yourself.

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

Hi, Ive been having problems with my mega644, for some reason I Used the the low fuse 0xF9 (all off except for cksel2 and cksel3), im programmign with avrpoket USB and it dosent recongnize any more the the mega644 any more, I dont know which fise is that I use for mistake and How can I resurect my avr? Thanks

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

You came to the wrong tutorial. Read this one:

http://www.avrfreaks.net/index.p...

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

Hello.

I have an xmega32a4, i put bootloader using AVRISP MKII.

Now i want to load a simple program on xmega by UART. Can this be done using RS232-UART or USB-UART converters?
Also, what software can i use to "send" the .hex thru the USB/RS232?

I have been searching this days about this, found the bootloader code and change it for xemga32.. but havent been able to load the program by serial.

Thanks.

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

Quote:

Can this be done using RS232-UART or USB-UART converters?

Yes.
Quote:

Also, what software can i use to "send" the .hex thru the USB/RS232?

That depends on what the bootloader you are using is designed to receive - some take .bin, some decode .hex

To be honest this is the wrong forum to be asking this.

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

Very useful.
Thanks.

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

hi dean,
does'nt method 1 require the presence of method 4.?

thnx

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

You mean "does'nt method 4 require the presence of method 1.? ". You are quite right. To use a bootloader you have to get it into the chip somehow. To do that you need to use ISP/JTAG/PDI/TPI or some other hardware programming method. It's the classic chicken/egg but this time we know the answer - you must have ISP before you can use bootloader.

If your question really was "does ISP require the presence of a bootloader?" then the answer is no. The AVR chip itself has a built in mechanism that operates the ISP interface and most of the time this is the very first step used to contact/program a "virgin" AVR.

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

hi clawson,
thnx for the response.the second part of your response was my subject.as isp is operating on the spi interface,my doubt is regarding the presence of the backup required from spi interface to flash programming i.e instruction decoding to flash programming FSA.so from your response i take it that isp using spi can do without bootloader support.
in one atmega8 i was not able to programme using isp on spi and i found the bootloader area empty on a parallel programmer, hence my doubt.i'm a newbie to atmega.

thnx

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

Quote:

i take it that isp using spi can do without bootloader support.

Yes, just as the datasheet says.
Quote:

in one atmega8 i was not able to programme using isp on spi and i found the bootloader area empty on a parallel programmer

If you had a parallel programmer you should have taken the opportunity to read the fuses to explain why ISP was not possible. Presumably the chip had been used before and the CKSEL fuse had been set to a non-existent clock or perhaps the RSTDISBL fuse had been activated?

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

ok ,

thnx a lot.

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

Thanks abcminiuser for this great programming guide,

 

 

 

Last Edited: Sat. Feb 20, 2016 - 07:09 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Noob question here: So if I use an ISP , like Atmel-ICE, do I still need a bootloader?

Last Edited: Sat. Jul 9, 2016 - 03:26 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 1

No you do not need a bootloader if you use an Atmel ICE to program your devices.

 

Jim

If you want a career with a known path - become an undertaker. Dead people don't sue! - Kartman

Please Read: Code-of-Conduct

Atmel Studio6.2/AS7, DipTrace, Quartus, MPLAB user

Pages