Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Problem regarding serial AVR ISP

Status
Not open for further replies.

saikat36

Member level 2
Joined
Mar 26, 2011
Messages
46
Helped
3
Reputation
6
Reaction score
3
Trophy points
1,288
Activity points
1,514
First of all I am newbie in microcontrollers. I have a ATmega8L. I have written my code in C. Code consists 12 lines & programme is straight & simple. I have Run & Compiled my code with no warning & errors in AVR Studio 4.19 & create .hex file. Now to burn this code I used Ponyprogv206f. Ponyprogv207c somehow haven't run in my PC & off course my PC doesn't have any parallel port(DB-25) but has only serial port (DB-9). So I compelled to use serial port(DB-9). I make my ckt. as pictures shown . Actually both ckt. are same. I actually +5V DC( to be exact +4.97) separately & made ISP & dc power supply's are GND common.
After doing all these when I attempted to burn my ATmega8 I got error:24 :sad: Now I am wonder what I have done wrong:-o May be it is very difficult to find out what's my problem from such far end but still I am requesting you all to help me plz.
Oops I forget to tell I didn't change any fuses. All settings are still remained in default mode. I didn't use any external oscillator. Is it the reason to get error:24?So many confusion....


sigpic9675_4gif.jpg
 
Last edited:

The default clock source of a meage0 is the internal RC so there is no need for a crystal.

I'm not sure about the error cause because I haven't used ponyprog or a serial programmer, just parallel models and USB.
Have you set the serial port correctly and the speed of the port from the PC hardware settings?
Also make sure that you make the ISP connection correctly
avr_socket_pcb.jpg


One of the programmers you show is https://electronics-diy.com/avr_programmer.php , have you set the ponyprog as shown?
 

Yes I have tried both settings i.e. Serial I/O & Serial API but no improvements.
 

Did you check your programmer with some terminal program? You can output lines SCK, MOSI and RESET change by software and check by multimeter. MISO change to 5v and 0v and monitor change on software. Software with capability to check is:

https://sites.google.com/site/terminalbpp/

Other thing is check polarity settings in ponyprog (interface setup section).
 

Ok I will check

Meanwhile I tried several time now it shows "bad processor-25" in Ponyprog.
Does it mean my mpc is burned out?
 

At last after many unsuccessful tries I have just succeeded to programme my same ATmega8.:happy:
Thanks to all.
 

hey even i am facing same problem ..can u help me by giving solution that how u succedded..
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top