system
April 6, 2012, 7:30am
1
hey,
So I have to program 7 ATtiny167 and I would like to use Arduino to do it.
Current solutions is to use an Arduino UNO as a ISP and AVR studio & AVR dude to upload code via the ISP.
AVR Studio does not recognize Arduino ISP as a programmer pod thus AVRdude to program
lets face it, this way is a pain and suck...
how can i modify the arduino/arduino SDK to work with a attiny167?
how can i intercept the C code from arduino?
i'm willing to make the modifications/make files so the community can now use the ATtiny167. just need to know what to do and where to start...
also gotta program a ATmega2560 via ISP...
please help... 3 weeks left in the semester...
Hello,
keaton:
Current solutions is to use an Arduino UNO as a ISP and AVR studio & AVR dude to upload code via the ISP.
Does that work? Are you able to program an ATtiny167 using the ArduinoISP sketch?
system
April 6, 2012, 8:56am
3
Koop:
This might be a bit unwanted, but if you need it in three weeks, isn't it better to just suffer through the pain of using the Uno as ISP? Unless you need to program lots of ATtinies?
again i need to program 7 ATtinies...
still working on a hello world program, our team has fallen apart/ dropped..... it is now down to the robotics & electrical engineering student(2 total/ out of the 22) to get us over the finish line. I need basic functionality, the 2 of us need to pass.
we both kinda know C++ from what we took in school.... we both have done extensive work using a arduino uno/demulva/mega
still working on a hello world program
You need to take a step back. Start by getting avrdude to communicate reliably with the target (your ATtiny167). A typical command-line would be...
avrdude -p attiny13 -c stk500v1 -P \\.\COM14 -b 250000 -v -v -v -v
The output will be similar to this...
avrdude: Version 5.10, compiled on Jan 19 2010 at 10:45:23
Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
Copyright (c) 2007-2009 Joerg Wunsch
System wide configuration file is "C:\arduino\arduino-1.0\hardware\tools\avr\etc\avrdude.conf"
Using Port : \\.\COM14
Using Programmer : stk500v1
Overriding Baud Rate : 250000
avrdude: serial_baud_lookup(): Using non-standard baud rate: 250000avrdude: Send: 0 [30] [20]
avrdude: Send: 0 [30] [20]
avrdude: Send: 0 [30] [20]
avrdude: Recv: . [14]
avrdude: Recv: . [10]
AVR Part : ATtiny13
Chip Erase delay : 4000 us
PAGEL : P00
BS2 : P00
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 5 4 0 no 64 4 0 4000 4000 0xff 0xff
Block Poll Page Polled
Memory Type Mode Delay Size Indx Paged Size Size #Pages MinW MaxW ReadBack
----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
flash 65 6 32 0 yes 1024 32 32 4500 4500 0xff 0xff
Block Poll Page Polled
Memory Type Mode Delay Size Indx Paged Size Size #Pages MinW MaxW ReadBack
----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
signature 0 0 0 0 no 3 0 0 0 0 0x00 0x00
Block Poll Page Polled
Memory Type Mode Delay Size Indx Paged Size Size #Pages MinW MaxW ReadBack
----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
lock 0 0 0 0 no 1 0 0 4500 4500 0x00 0x00
Block Poll Page Polled
Memory Type Mode Delay Size Indx Paged Size Size #Pages MinW MaxW ReadBack
----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
calibration 0 0 0 0 no 2 0 0 0 0 0x00 0x00
Block Poll Page Polled
Memory Type Mode Delay Size Indx Paged Size Size #Pages MinW MaxW ReadBack
----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
lfuse 0 0 0 0 no 1 0 0 4500 4500 0x00 0x00
Block Poll Page Polled
Memory Type Mode Delay Size Indx Paged Size Size #Pages MinW MaxW ReadBack
----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
hfuse 0 0 0 0 no 1 0 0 4500 4500 0x00 0x00
Programmer Type : STK500
Description : Atmel STK500 Version 1.x firmware
avrdude: Send: A [41] . [80] [20]
avrdude: Recv: . [14]
avrdude: Recv: . [02]
avrdude: Recv: . [10]
avrdude: Send: A [41] . [81] [20]
avrdude: Recv: . [14]
avrdude: Recv: . [01]
avrdude: Recv: . [10]
avrdude: Send: A [41] . [82] [20]
avrdude: Recv: . [14]
avrdude: Recv: . [12]
avrdude: Recv: . [10]
avrdude: Send: A [41] . [98] [20]
avrdude: Recv: . [14]
avrdude: Recv: . [00]
avrdude: Recv: . [10]
Hardware Version: 2
Firmware Version: 1.18
Topcard : Unknown
avrdude: Send: A [41] . [84] [20]
avrdude: Recv: . [14]
avrdude: Recv: . [00]
avrdude: Recv: . [10]
avrdude: Send: A [41] . [85] [20]
avrdude: Recv: . [14]
avrdude: Recv: . [00]
avrdude: Recv: . [10]
avrdude: Send: A [41] . [86] [20]
avrdude: Recv: . [14]
avrdude: Recv: . [00]
avrdude: Recv: . [10]
avrdude: Send: A [41] . [87] [20]
avrdude: Recv: . [14]
avrdude: Recv: . [00]
avrdude: Recv: . [10]
avrdude: Send: A [41] . [89] [20]
avrdude: Recv: . [14]
avrdude: Recv: . [00]
avrdude: Recv: . [10]
Vtarget : 0.0 V
Varef : 0.0 V
Oscillator : Off
SCK period : 0.1 us
avrdude: Send: A [41] . [81] [20]
avrdude: Recv: . [14]
avrdude: Recv: . [01]
avrdude: Recv: . [10]
avrdude: Send: A [41] . [82] [20]
avrdude: Recv: . [14]
avrdude: Recv: . [12]
avrdude: Recv: . [10]
avrdude: Send: B [42] . [14] . [00] . [00] . [01] . [01] . [01] . [01] . [02] . [ff] . [ff] . [ff] . [ff] . [00] [20] . [00] @ [40] . [00] . [00] . [04] . [00] [20]
avrdude: Recv: . [14]
avrdude: Recv: . [10]
avrdude: please define PAGEL and BS2 signals in the configuration file for part ATtiny13
avrdude: Send: P [50] [20]
avrdude: Recv: . [14]
avrdude: Recv: . [10]
avrdude: AVR device initialized and ready to accept instructions
Reading | | 0% 0.00savrdude: Send: V [56] 0 [30] . [00] . [00] . [00] [20]
avrdude: Recv: . [14]
avrdude: Recv: . [1e]
avrdude: Recv: . [10]
avrdude: Send: V [56] 0 [30] . [00] . [01] . [00] [20]
avrdude: Recv: . [14]
avrdude: Recv: . [90]
avrdude: Recv: . [10]
Reading | ################# | 33% 0.06savrdude: Send: V [56] 0 [30] . [00] . [02] . [00] [20]
avrdude: Recv: . [14]
avrdude: Recv: . [07]
avrdude: Recv: . [10]
Reading | ################################################## | 100% 0.11s
avrdude: Device signature = 0x1e9007
avrdude: Send: V [56] P [50] . [00] . [00] . [00] [20]
avrdude: Recv: . [14]
avrdude: Recv: j [6a]
avrdude: Recv: . [10]
avrdude: safemode read 1, lfuse value: 6a
avrdude: Send: V [56] P [50] . [00] . [00] . [00] [20]
avrdude: Recv: . [14]
avrdude: Recv: j [6a]
avrdude: Recv: . [10]
avrdude: safemode read 2, lfuse value: 6a
avrdude: Send: V [56] P [50] . [00] . [00] . [00] [20]
avrdude: Recv: . [14]
avrdude: Recv: j [6a]
avrdude: Recv: . [10]
avrdude: safemode read 3, lfuse value: 6a
avrdude: safemode: lfuse reads as 6A
avrdude: Send: V [56] X [58] . [08] . [00] . [00] [20]
avrdude: Recv: . [14]
avrdude: Recv: . [ff]
avrdude: Recv: . [10]
avrdude: safemode read 1, hfuse value: ff
avrdude: Send: V [56] X [58] . [08] . [00] . [00] [20]
avrdude: Recv: . [14]
avrdude: Recv: . [ff]
avrdude: Recv: . [10]
avrdude: safemode read 2, hfuse value: ff
avrdude: Send: V [56] X [58] . [08] . [00] . [00] [20]
avrdude: Recv: . [14]
avrdude: Recv: . [ff]
avrdude: Recv: . [10]
avrdude: safemode read 3, hfuse value: ff
avrdude: safemode: hfuse reads as FF
avrdude: Send: V [56] . [a0] . [00] < [3c] . [00] [20]
avrdude: Recv: . [14]
avrdude: Recv: . [ff]
avrdude: Recv: . [10]
avrdude: Send: V [56] . [a0] . [00] = [3d] . [00] [20]
avrdude: Recv: . [14]
avrdude: Recv: . [ff]
avrdude: Recv: . [10]
avrdude: Send: V [56] . [a0] . [00] > [3e] . [00] [20]
avrdude: Recv: . [14]
avrdude: Recv: . [ff]
avrdude: Recv: . [10]
avrdude: Send: V [56] . [a0] . [00] ? [3f] . [00] [20]
avrdude: Recv: . [14]
avrdude: Recv: . [ff]
avrdude: Recv: . [10]
avrdude: Send: V [56] P [50] . [00] . [00] . [00] [20]
avrdude: Recv: . [14]
avrdude: Recv: j [6a]
avrdude: Recv: . [10]
avrdude: safemode read 1, lfuse value: 6a
avrdude: Send: V [56] P [50] . [00] . [00] . [00] [20]
avrdude: Recv: . [14]
avrdude: Recv: j [6a]
avrdude: Recv: . [10]
avrdude: safemode read 2, lfuse value: 6a
avrdude: Send: V [56] P [50] . [00] . [00] . [00] [20]
avrdude: Recv: . [14]
avrdude: Recv: j [6a]
avrdude: Recv: . [10]
avrdude: safemode read 3, lfuse value: 6a
avrdude: safemode: lfuse reads as 6A
avrdude: Send: V [56] X [58] . [08] . [00] . [00] [20]
avrdude: Recv: . [14]
avrdude: Recv: . [ff]
avrdude: Recv: . [10]
avrdude: safemode read 1, hfuse value: ff
...
avrdude: Send: Q [51] [20]
avrdude: Recv: . [14]
avrdude: Recv: . [10]
avrdude done. Thank you.
hello
I am using Attiny167 with arduino as a programmer.
I am using 1Mhz internal clock.
when I set baud rate 9600 , on serial terminal I can not get exact value as i write
for Example : Serial.write(0xAB); but on terminal m getting 6B 2B like this values.
but if i select 9200 on terminal then i get correct values.
Can you please help me with this?
I need 9600 baud rate.
Thanks in advance.
Can you please not cross-post?