| Author |
Message |
|
|
Posted: Mar 11, 2010 - 04:06 PM |
|

Joined: Mar 10, 2010
Posts: 7
|
|
Hello
I would like to make butterfly working with my prototype through I2C interface.
I have AVR Studio 4.12 build 700, this is strange it is not reporting 2 service packs i put on 4.18, how outsider can know build 700 is sp2 or not?
There is atMega169PV on my butterfly, anyway, when i choose gcc compiler and dragon tool, i see avr studio is supporting 169, 169p, 169pa, but not 169pv.
Is it problem, with microchip dspic30f6014 and dspic30f6014a is different cpu and sometimes code will crack, not because of code itself but because of different headers.
My next move is to check if avr studio works fine with dragon, it is written:"AVR Dragon
Note that the PDI interface is not supported by AVR Dragon in this release. PDI is selectable but will result in an error when used. Use JTAG instead.
".
Funtastic, but index say almost nothing about what PDI is.
"PDI settings (only valid for AVR ONE!)
In PDI mode pressing the "Settings" button brings up the PDI communication frequency configuration dialog."
So i presume avr studio 4.18 sp2 (build 700) + dragon + butterfly is ok for programming and basic debugging of butterfly. Is it true or not, as there are many posts about such (or similar) toolchain making problems.
Next question: i would like to make I2C working through mega169pv, where can i find i2c.h header as i dont see such file in winavr. There is spi header but not i2c. |
|
|
| |
|
|
|
|
|
Posted: Mar 11, 2010 - 04:13 PM |
|


Joined: Jul 18, 2005
Posts: 62228
Location: (using avr-gcc in) Finchingfield, Essex, England
|
|
What has PDI gt to do with a mega169? You can ISP, JTAG or high-voltage parallel programm it but PDI is not on the agenda (that's for Xmega's).
For I2C with GCC use the Fleury lib:
http://homepage.hispeed.ch/peterfleury/ ... aster.html
Cliff
PS as for Studio version number use Help-About, to the left you should see:
Copyright (C) 1996-2009
Version 4.18
Build 700 |
_________________
|
| |
|
|
|
|
|
Posted: Mar 11, 2010 - 04:29 PM |
|

Joined: Mar 10, 2010
Posts: 7
|
|
Thx for link and info.
Yes, but build 700 is not saying me "this avr studio is 4.18 with sp2 on it", i tried to be fortune teller but not much success recently.
I still have no answer whether i can program 169pv as 169p. |
|
|
| |
|
|
|
|
|
Posted: Mar 11, 2010 - 04:44 PM |
|

Joined: Nov 17, 2004
Posts: 13815
Location: Vancouver, BC
|
|
|
Quote:
Yes, but build 700 is not saying me "this avr studio is 4.18 with sp2 on it", i tried to be fortune teller but not much success recently.
But there is a button on that dialog box that says "Version". If you click that, you will get a dialog that says exactly what service pack you are using (and build 700 is sp3, not sp2). |
_________________ Regards,
Steve A.
The Board helps those that help themselves.
|
| |
|
|
|
|
|
Posted: Mar 11, 2010 - 04:44 PM |
|


Joined: Jul 18, 2005
Posts: 62228
Location: (using avr-gcc in) Finchingfield, Essex, England
|
|
| As the combined 169P/169PV datasheet only lists one set of signature bytes (1E, 94, 05) I think it's a fair assumption that the two are functionally identical and the only difference are the Speed/Vcc ranges. So build for 169P and it will work equally in 169PV |
_________________
|
| |
|
|
|
|
|
Posted: Mar 11, 2010 - 05:35 PM |
|


Joined: Nov 17, 2004
Posts: 6137
Location: Great Smokey Mountains.
|
|
I have used the Dragon with the Butterfly ISP with no problems. I selected the closest match 169P.
Smiley |
_________________ FREE TUTORIAL: 'Quick Start Guide for Using the WinAVR C Compiler with ATMEL's AVR Butterfly' AVAILABLE AT: http://www.smileymicros.com
|
| |
|
|
|
|
|
Posted: Apr 01, 2012 - 02:55 AM |
|

Joined: Jan 25, 2011
Posts: 1
|
|
| Smiley. Hi. I am new here. Please I need codes or libraries about I2C communication for BUTTERFLY ATMEGA169. Could you help me? I would say thanks for your help. |
|
|
| |
|
|
|
|
|
Posted: Apr 01, 2012 - 10:20 AM |
|


Joined: Jul 18, 2005
Posts: 62228
Location: (using avr-gcc in) Finchingfield, Essex, England
|
|
| For TWI Google either "Pascal Stang avrlib" or "Peter Fleury AVR" |
_________________
|
| |
|
|
|
|
|
Posted: Apr 01, 2012 - 10:31 PM |
|


Joined: Mar 28, 2001
Posts: 20325
Location: Sydney, Australia (Gum trees, Koalas and Kangaroos, No Edelweiss)
|
|
| And you MUST NOT look at the examples which come with winAvr like C:\WinAVR-20100110\doc\avr-libc\examples\twitest it is strictly forbidden!! |
_________________ John Samperi
Ampertronics Pty. Ltd.
www.ampertronics.com.au
* Electronic Design * Custom Products * Contract Assembly
|
| |
|
|
|
|
|