Downloading a program into AVR without development board?

Hello

I want to program an AVR directly without the help of any development board. My AVR is installed on a breadboard.

How do you program it using SPI method?

I would like to have a complete program. I know the read and write functions for SPI method but I could not put them to use. I like a complete program that uses those functions to download a .hex file into the microcontroller.

Regards

Thanks

Find someone to program a boot-loader into your AVR.

Leon

leon_heller:
Find someone to program a boot-loader into your AVR.

Leon

You missed the whole point. I do not want to use any development board or anything else. I know you can program a stand alone micro using SPI but I need a sample program of how it is done.

smdfan

The whole point of a boot-loader is that you don’t need a development system, just SPI or RS-232.

Anyway, if you want to write your own software look at the SP12 source code:

http://www.xs4all.nl/~sbolt/e-spider_prog.html

The SP12 programmer uses the PC printer port as the SPI programming interface. You should be able to see how it works.

Leon

leon_heller:
The whole point of a boot-loader is that you don’t need a development system, just SPI or RS-232.

Anyway, if you want to write your own software look at the SP12 source code:

http://www.xs4all.nl/~sbolt/e-spider_prog.html

The SP12 programmer uses the PC printer port as the SPI programming interface. You should be able to see how it works.

Leon

I thought you do not need any kind of bootloader if you are using SPI programming. Was I wrong?

It can be more convenient as no special software is required - just a clocked bitstream. Actually, I’m not sure if the AVR can be booted that way, it works for some other chips.

Is the SP12 software the sort of thing that you were looking for?

Leon

Downloading code to flash

In-system programmer (ISP), such as

http://www.atmel.com/dyn/Products/tools … ol_id=2726

Most commonly used

JTAG - fancy or cheap, such as

http://www.nkcelectronics.com/avr-jtag- … r-kit.html

works with free AVR studio

Serial port bootloader firmware. Lots of free ones

To get the bootloader firmware into the chip

Buy a board or chip with a bootloader already installed. Quite a few availble as on avrfreaks.net’s listing of vendor.

or use/borrow an ISP to place your freeware bootloader into flash. One bootloader + PC side software is

http://www.avrfreaks.net/index.php?modu … tem_id=625