arduino:isp_with_stk500

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
arduino:isp_with_stk500 [2012/12/19 11:15] brettarduino:isp_with_stk500 [2016/07/23 13:26] (current) – [ISP with an STK500 to program a ATMEGA328] minerva9
Line 6: Line 6:
 However, it can be hard to work out exactly how to use it to program your AVR chips. These notes might help get you started. However, it can be hard to work out exactly how to use it to program your AVR chips. These notes might help get you started.
  
-The first thing to do is to download a copy of [[http://www.atmel.com/microsite/avr_studio_5/default.asp?source=redirect|AVR Studio]]. This has a decent built-in programming capability and works well with the STK500 unit.+The first thing to do is to download a copy of [[http://www.atmel.com/tools/studioarchive.aspx|AVR Studio]]. You want version 4.19 \\ 
 +This has a decent built-in programming capability and works well with the STK500 unit.
  
 Depending on the board that you will use to host the AVR chip that is to be programmed, you might need an external power supply unit. We use this inexpensive serial Arduino board. To use it as a programmer, we require to plug in both the ISP connector and have external power applied to the little DC jack plug on the board. The important thing to note is that your board should have a six or ten pin ISP connector. Our board has a six pin connector. Depending on the board that you will use to host the AVR chip that is to be programmed, you might need an external power supply unit. We use this inexpensive serial Arduino board. To use it as a programmer, we require to plug in both the ISP connector and have external power applied to the little DC jack plug on the board. The important thing to note is that your board should have a six or ten pin ISP connector. Our board has a six pin connector.
Line 73: Line 74:
  
 <code> <code>
-[root@wombat avrisp]avrdude -v -c avrisp2 -p m328p -P /dev/ttyUSB0 -b 115200 -Uflash:w:jeenode-rf12demo-bootloader.hex+#!/bin/sh 
 +
 +# Using ESX you can virtually connect the AVR Programer into the VM 
 +# This command will drive the AVR ISP and flash a chip 
 +# YELLOW WIRE is PIN 1 
 +# Power to AVR UNIT 
 +# Power to Arduino
  
-avrdude: Version 5.10, compiled on Dec 19 2012 at 21:20:20 +avrdude -v -avrisp2 -p m328p -/dev/ttyUSB0 -b 115200 \ 
-         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/ +-efuse:w:0x05:m \ 
-         Copyright (c) 2007-2009 Joerg Wunsch +-U hfuse:w:0xde:m \ 
- +-U lfuse:w:0xff:m \ 
-         System wide configuration file is "/usr/local/etc/avrdude.conf" +-flash:w:jeenode-rf12demo-bootloader.hex
-         User configuration file is "/root/.avrduderc" +
-         User configuration file does not exist or is not a regular file, skipping +
- +
-         Using Port                    : /dev/ttyUSB0 +
-         Using Programmer              : avrisp2 +
-         Overriding Baud Rate          : 115200 +
-         AVR Part                      : ATMEGA328P +
-         Chip Erase delay              : 9000 us +
-         PAGEL                         : PD7 +
-         BS2                           : PC2 +
-         RESET disposition             : dedicated +
-         RETRY pulse                   : SCK +
-         serial program mode           : yes +
-         parallel program mode         : yes +
-         Timeout                       : 200 +
-         StabDelay                     : 100 +
-         CmdexeDelay                   : 25 +
-         SyncLoops                     : 32 +
-         ByteDelay                     : 0 +
-         PollIndex                     : 3 +
-         PollValue                     : 0x53 +
-         Memory Detail                 : +
- +
-                                  Block Poll               Page                       Polled +
-           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack +
-           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- --------- +
-           eeprom        65            0 no       1024    4      0  3600  3600 0xff 0xff +
-           flash         65       128    0 yes     32768  128    256  4500  4500 0xff 0xff +
-           lfuse          0            0 no          1    0      0  4500  4500 0x00 0x00 +
-           hfuse          0            0 no          1    0      0  4500  4500 0x00 0x00 +
-           efuse                     0 no          1    0      0  4500  4500 0x00 0x00 +
-           lock                      0 no          1    0      0  4500  4500 0x00 0x00 +
-           calibration    0            0 no          1    0      0         0 0x00 0x00 +
-           signature      0            0 no          3    0      0         0 0x00 0x00 +
- +
-         Programmer Type STK500V2 +
-         Description     Atmel AVR ISP mkII +
-         Programmer ModelAVRISP +
-         Hardware Version: 15 +
-         Firmware Version Master : 2.10 +
-         Vtarget         : 0.0 V +
-         SCK period      : 204.0 us +
- +
-avrdude: AVR device initialized and ready to accept instructions +
- +
-Reading | ################################################## | 100% 0.02s +
- +
-avrdude: Device signature = 0x1e950f +
-avrdude: safemode: lfuse reads as 62 +
-avrdude: safemode: hfuse reads as D9 +
-avrdudesafemodeefuse reads as 7 +
-avrdudeNOTE: FLASH memory has been specified, an erase cycle will be performed +
-         To disable this feature, specify the -D option. +
-avrdudeerasing chip +
-avrdudereading input file "jeenode-rf12demo-bootloader.hex" +
-avrdudeinput file jeenode-rf12demo-bootloader.hex auto detected as Intel Hex +
-avrdude: writing flash (32670 bytes): +
- +
-Writing | ################################################## | 100% 4.20s +
- +
-avrdude: 32670 bytes of flash written +
-avrdude: verifying flash memory against jeenode-rf12demo-bootloader.hex: +
-avrdude: load data flash data from input file jeenode-rf12demo-bootloader.hex: +
-avrdudeinput file jeenode-rf12demo-bootloader.hex auto detected as Intel Hex +
-avrdude: input file jeenode-rf12demo-bootloader.hex contains 32670 bytes +
-avrdude: reading on-chip flash data: +
- +
-Reading | ################################################## | 100% 7.15s +
- +
-avrdude: verifying ... +
-avrdude: 32670 bytes of flash verified +
- +
-avrdude: safemode: lfuse reads as 62 +
-avrdude: safemode: hfuse reads as D9 +
-avrdude: safemode: efuse reads as 7 +
-avrdude: safemode: Fuses OK +
- +
-avrdude done.  Thank you. +
- +
-[root@wombat avrisp]# +
 </code> </code>
  
 {{tag>avr STK500 ISP Sure}} {{tag>avr STK500 ISP Sure}}
  • arduino/isp_with_stk500.1355915747.txt.gz
  • Last modified: 2012/12/19 11:15
  • by brett