Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
arduino:isp_with_stk500 [2012/12/19 11:15] – brett | arduino: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:// | + | The first thing to do is to download a copy of [[http:// |
+ | 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: | ||
< | < | ||
- | [root@wombat avrisp]# avrdude -v -c avrisp2 -p m328p -P /dev/ttyUSB0 -b 115200 -Uflash: | + | #!/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 |
- | | + | -U efuse:w:0x05:m \ |
- | | + | -U hfuse:w:0xde:m \ |
- | + | -U lfuse:w:0xff:m \ | |
- | | + | -U flash:w: |
- | User configuration file is "/ | + | |
- | User configuration file does not exist or is not a regular file, skipping | + | |
- | + | ||
- | Using Port : / | + | |
- | Using Programmer | + | |
- | | + | |
- | AVR Part : ATMEGA328P | + | |
- | Chip Erase delay : 9000 us | + | |
- | | + | |
- | | + | |
- | RESET disposition | + | |
- | RETRY pulse : SCK | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | + | ||
- | Block Poll | + | |
- | | + | |
- | ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- --------- | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | efuse | + | |
- | | + | |
- | | + | |
- | | + | |
- | + | ||
- | | + | |
- | | + | |
- | | + | |
- | Hardware Version: 15 | + | |
- | | + | |
- | | + | |
- | SCK period | + | |
- | + | ||
- | avrdude: AVR device initialized and ready to accept instructions | + | |
- | + | ||
- | Reading | ################################################## | + | |
- | + | ||
- | avrdude: Device signature = 0x1e950f | + | |
- | avrdude: safemode: lfuse reads as 62 | + | |
- | avrdude: safemode: | + | |
- | avrdude: safemode: efuse reads as 7 | + | |
- | avrdude: NOTE: FLASH memory has been specified, an erase cycle will be performed | + | |
- | To disable this feature, specify the -D option. | + | |
- | avrdude: erasing chip | + | |
- | avrdude: reading input file " | + | |
- | avrdude: input file jeenode-rf12demo-bootloader.hex auto detected as Intel Hex | + | |
- | avrdude: writing flash (32670 bytes): | + | |
- | + | ||
- | Writing | ################################################## | + | |
- | + | ||
- | 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: | + | |
- | avrdude: input file jeenode-rf12demo-bootloader.hex | + | |
- | avrdude: input file jeenode-rf12demo-bootloader.hex contains 32670 bytes | + | |
- | avrdude: reading on-chip flash data: | + | |
- | + | ||
- | Reading | ################################################## | + | |
- | + | ||
- | 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]# | + | |
</ | </ | ||
{{tag> | {{tag> |