Denmark
Offline
Full Member
Karma: 7
Posts: 246
|
 |
« Reply #15 on: February 16, 2012, 12:56:25 pm » |
Hmm, that's weird. Are you sure you have connected everything to the atmega8? Like all ground connections, VCC and a crystal (if you are using that).
Regards Lauszus
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 12
|
 |
« Reply #16 on: February 20, 2012, 09:59:19 am » |
Hello. I tried to replace the card with another Arduino Mega 2560 and also the ATmega8 chip. I'm using version 0.23 of the IDE. AVRDUDE used is provided with the IDE. I also added the crystal.
But the result is always the same.
You can see photo of the installation.
|
|
|
|
|
Logged
|
|
|
|
|
Denmark
Offline
Full Member
Karma: 7
Posts: 246
|
 |
« Reply #17 on: February 20, 2012, 10:30:36 am » |
Hi, You should install avrdude separately and not use the one bundled with the Arduino software - I have seen other people having problems with the bundled one as well. I recommend downloading either WinAVR: http://winavr.sourceforge.net/ if you are running Windows or CrossPack: http://www.obdev.at/products/crosspack/index.html if you use MAC OS X. As they include all you will ever need like: a compiler (avr-gcc), programmer (avrdude), and debugger (avr-gdb) plus more. You can also just download avrdude seperatly: http://savannah.nongnu.org/projects/avrdude, but I can't see the point, as WinAVR and CrossPack is just way faster to get installed. Hope that did the trick  Regards Lauszus
|
|
|
|
« Last Edit: February 22, 2012, 09:55:24 am by Lauszus »
|
Logged
|
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 12
|
 |
« Reply #18 on: February 22, 2012, 07:55:33 am » |
Thank you very much, but: I downloaded WinAVR, type 'avrdude -p m8 -P com4 -c avrisp -b 19200' in C:\WinAVR-20100110\bin directory, and result is: avrdude.exe: stk500_program_enable(): protocol error, expect=0x14, resp=0x50 avrdude.exe: initialization failed, rc=-1 Double check connections and try again, or use -F to override this check.
avrdude.exe: stk500_disable(): protocol error, expect=0x14, resp=0x51
I downloaded avrdude-5.11-Patch7610-win32, but the result is the same.
The problem could be the bootloader?
Enrico.
|
|
|
|
|
Logged
|
|
|
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 12
|
 |
« Reply #20 on: February 23, 2012, 11:05:21 am » |
Hello. I found a oscilloscope and checked Arduino pins (10,11,12,13): they don't move when I type 'avrdude -p m8 -P com4 -c avrisp -b 19200'.
What it means?
Enrico.
|
|
|
|
|
Logged
|
|
|
|
|
Denmark
Offline
Full Member
Karma: 7
Posts: 246
|
 |
« Reply #21 on: February 23, 2012, 11:35:30 am » |
Are you sure com4 is the correct port? Also try to use "-c arduino" instead if "-c avrisp".
Regards Lauszus
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 12
|
 |
« Reply #22 on: February 24, 2012, 09:15:03 am » |
Hi Lauszus, com4 is correct, IDE Serial Port is com4 (upload ArduinoISP Sketch) and when type "avrdude -p m8 -P com4 -c avrisp -b 19200" RX and TX leds in Arduino Mega 2560 blinking.
I used "-c arduino" instead of "-c avrisp", avrdude return: avrdude.exe: stk500_getsync(): not in sync: resp=0x00
But with "-c arduino" instead of "-c avrisp" pin 13 (SCK) goes high for about 300 ms.
Regards. Enrico.
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 12
|
 |
« Reply #23 on: February 27, 2012, 09:44:25 am » |
Hi Lauszus, After many attempts I tried to use Arduino UNO. At the first shot it's worked.
I thank you for your support, I don't know why Mega 2560 doesn't work.
Enrico.
|
|
|
|
|
Logged
|
|
|
|
|
Denmark
Offline
Full Member
Karma: 7
Posts: 246
|
 |
« Reply #24 on: February 27, 2012, 09:59:49 am » |
Hi, Nice  Glad I could help. Regards Lauszus
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 4
|
 |
« Reply #25 on: May 19, 2012, 01:47:07 am » |
hi lauzsuz, i have questions: 1) can i have program my at89s52 with tis isp concept 2) where i find avrdude program (or we program our chip over arduino) 3)how we connect our chip to arduino uno?
|
|
|
|
|
Logged
|
|
|
|
|
Netherlands
Offline
Tesla Member
Karma: 88
Posts: 9392
In theory there is no difference between theory and practice, however in practice there are many...
|
 |
« Reply #26 on: May 19, 2012, 02:36:57 am » |
where i find avrdude program (or we program our chip over arduino) It is in the Arduino distribution, on my PC - C:\Program Files (x86)\arduino-0022\hardware\tools\avr\bin -
|
|
|
|
|
Logged
|
|
|
|
|
Denmark
Offline
Full Member
Karma: 7
Posts: 246
|
 |
« Reply #27 on: May 19, 2012, 12:09:59 pm » |
@mahk 1) can i have program my at89s52 with tis isp concept It seems like a lot of people have tried to port it, but it's still not supported in avrdude, so I don't think it will be that easy. Here is a example of a old post I found: http://old.nabble.com/How-to-add-AT89S52-to-avrdude-support-list--td24198268.html2) where i find avrdude program (or we program our chip over arduino) It's much easier to just download WinAVR ( http://winavr.sourceforge.net/) or CrossPack ( http://www.obdev.at/products/crosspack/index.html) as you will also get the newest version of avrdude. 3)how we connect our chip to arduino uno? Check the datasheet for your chip and connect MOSI, MISO and SCK to pin 11 (MOSI), 12 (MISO) and 13 (SCK) on your Arduino. Then connect pin 10 (Slave select or just SS) on your Arduino to the reset pin of your chip. Regards Lauszus
|
|
|
|
|
Logged
|
|
|
|
|
|