CrazyEngineers Archive
Old, but evergreen and popular discussions on CrazyEngineers, presented to you in read-only mode.
@soni.sapan • 06 Feb, 2013
I was firstly using avrdude but it is not responding dont know why?.
while using extreme burner its showing error "power on failed & cannot connect to the target chip".
I am using ATMEGA16 development board which is usb powered.
so what is the problem please tell me
@[Prototype] • 06 Feb, 2013 Is your Atmega16 brand new? Are you using external crystal?
@soni.sapan • 06 Feb, 2013 its new trying to burn 1st tym & it is mounted on trainer kit so crystal oscillator is also inbuilt
& when i connect it to my PC , my PC show that beep of an external device connected,that means I have installed USBASP drivers correctly but still cant
@[Prototype] • 06 Feb, 2013
soni.sapan
its new trying to burn 1st tym & it is mounted on trainer kit so crystal oscillator is also inbuilt
& when i connect it to my PC , my PC show that beep of an external device connected,that means I have installed USBASP drivers correctly but still cant
Fuse bits! The Atmega's are configured to use internal 1 MHZ internal oscillator by default hence you need to first configure it to use the external crystal.

Set LOW FUSE = 0xFF and HIGH fuse = 0xC9 to configure it with external crystal.

However, of course you would first require that the burning software detect your controller. Check to see if your board have any setting to enable SCK setting. That would enable you to work on slow clock. USBASP supports that, but your board is required to have the jumper.
@soni.sapan • 07 Feb, 2013 set fusebits but it show following in
1.auto detecting programmer
2.found USBasp on usb port
3.powering on
4.power on failed
5.can not communicating with target chip
6.retrying again
& so on repeted 4,5,6
@arunchary • 07 Feb, 2013 hi,
here is to be considered checking, first of all connect your development board to AVRdude then go for checking ports where USBasp is heighlighted or not in communication port,if it not install sinaprog software with drivers of that module then connect once again,then ull get the connection then go for recognising the device while connecting to your AVRdude k. if its also not solved place the screen shots such that ill go for clear your bug,.
@soni.sapan • 07 Feb, 2013
arunchary
hi,
here is to be considered checking, first of all connect your development board to AVRdude then go for checking ports where USBasp is heighlighted or not in communication port,if it not install sinaprog software with drivers of that module then connect once again,then ull get the connection then go for recognising the device while connecting to your AVRdude k. if its also not solved place the screen shots such that ill go for clear your bug,.
USBASP can be seen in in device manager while I connect it.
@arunchary • 08 Feb, 2013 ok what type of software your using to dump the code into controller through avr dude..
@soni.sapan • 08 Feb, 2013 I tried with avrdude, extreme burner,avr burno mat,khazama avr programmer,
In extreme burner I can see the error as mentioned above & in khazama programmer I got error like setting isp clock failed 😭
@soni.sapan • 08 Feb, 2013 it is the schematic of avr board am using......
check it out
@arunchary • 08 Feb, 2013 i got your bug go with sinaprog software to dump the programmer with the related usb support software then dump the programmer in to the controller ok.
@soni.sapan • 08 Feb, 2013
arunchary
i got your bug go with sinaprog software to dump the programmer with the related usb support software then dump the programmer in to the controller ok.
please explain it more
@arunchary • 09 Feb, 2013 hi CEans,download the software sinaprog and connect your development board to pc then go for search the controller to identify, then select the hex file to burn,in mean while select the memory to burn and select the fuse bits to external crystal osc. as shown below.
@arunchary • 09 Feb, 2013 above window shows the software to configure and burn the AVR family Controlleres.
@[Prototype] • 09 Feb, 2013
soni.sapan
set fusebits but it show following in
1.auto detecting programmer
2.found USBasp on usb port
3.powering on
4.power on failed
5.can not communicating with target chip
6.retrying again
& so on repeted 4,5,6
How did you set the fuse bits then? To set the fuse bits, the software must first detect the controller?

Can you read the current fuse bits and screenshot it? I am pretty sure that you didn't set the fuse bits.
@soni.sapan • 09 Feb, 2013
[Prototype]
How did you set the fuse bits then? To set the fuse bits, the software must first detect the controller?

Can you read the current fuse bits and screenshot it? I am pretty sure that you didn't set the fuse bits.
I think I got the problem,
when I was trying with USB avr programmer(hardware) only without connecting atmega 16 I got the same error as mentioned above that means my software is not reading atmega 16.
& about fuse bits
In extreme burner there is an opt to set it but ofcourse I am not able to read fuse bits.
Now I think problem is to detect Atmega 16 & I think I have installed drivers properly
@[Prototype] • 09 Feb, 2013
soni.sapan
I think I got the problem,
when I was trying with USB avr programmer(hardware) only without connecting atmega 16 I got the same error as mentioned above that means my software is not reading atmega 16.
& about fuse bits
In extreme burner there is an opt to set it but ofcourse I am not able to read fuse bits.
Now I think problem is to detect Atmega 16 & I think I have installed drivers properly
Yeah? That's the problem. That's why I asked you to see if your board got any arrangement to set itself to SS mode. This will allow the programmer to run on Slow clock and will enable the AVR software to access the chip.

Another solution is to check if your college got a Universal programmer. Use this programmer to set the fuse bits and then later use it with your board. This is what I used to do.
@soni.sapan • 09 Feb, 2013
[Prototype]
Yeah? That's the problem. That's why I asked you to see if your board got any arrangement to set itself to SS mode. This will allow the programmer to run on Slow clock and will enable the AVR software to access the chip.

Another solution is to check if your college got a Universal programmer. Use this programmer to set the fuse bits and then later use it with your board. This is what I used to do.
Am at home at this moment any other solution? I think board dont have that arrengement, check above post I have posted the schematic of the board
@[Prototype] • 09 Feb, 2013
soni.sapan
Am at home at this moment any other solution? I think board dont have that arrengement, check above post I have posted the schematic of the board
A little correction. I meant the programmer not the board. USBASP has been modified to work on SCK, but it may be possible that the manufacturer of your board might have hardwired that setting instead of providing a jumper.
@soni.sapan • 09 Feb, 2013 cant understand you 😔. 😐........................................
@[Prototype] • 09 Feb, 2013 • 1 like
soni.sapan
cant understand you 😔. 😐........................................
[​IMG]


Notice that Slow SCK jumper? Track down that same thing keeping this circuit diagram as the reference. If you find any provision for jumper at that place, then put the jumper and try reading the atmega again, else, your programmer manufacturer skipped that part and you don't have any other way than to find a appropriate programmer and set up the fuse bits.

I remember one other way. Try to build a Serial programmer. Its pretty easy to build one and requires negligible components. No microcontroller is needed as well. This programmer, with Pony Prog can get your work done.
@dossdss • 09 Feb, 2013
[Prototype]
[​IMG]




hello,
I am also working on ATmega16...i use unipro for its programming. but i have seen many local vendors selling the USB programming hardware for mega16 at around 4 to 500/- it uses atmega8.
if i am going to make the same kind of programmer by my own, can you please tell me its software part, that what kind of code that programmer has ?
i have its circuit schematic but dont have any idea about the program.

thanks.
@[Prototype] • 09 Feb, 2013 dossdss, you can get everything here -> https://www.fischl.de/usbasp/

The vendors sells the same thing.
@soni.sapan • 09 Feb, 2013
[Prototype]
[​IMG]


Notice that Slow SCK jumper? Track down that same thing keeping this circuit diagram as the reference. If you find any provision for jumper at that place, then put the jumper and try reading the atmega again, else, your programmer manufacturer skipped that part and you don't have any other way than to find a appropriate programmer and set up the fuse bits.

I remember one other way. Try to build a Serial programmer. Its pretty easy to build one and requires negligible components. No microcontroller is needed as well. This programmer, with Pony Prog can get your work done.
ll reply when I am done
@soni.sapan • 13 Mar, 2013 I am done with this problem, now my controller is working..
but now problem is that I am trying to burn another program in it, it showing error "mismatch at location 0x00000000" so what is the problem?
@arunchary • 14 Mar, 2013 check out the fuse bits in the software...
@soni.sapan • 14 Mar, 2013
arunchary
check out the fuse bits in the software...
thanks dude it is done, can I be able to know which program is currently working on chip?
& why reset button is used?
@[Prototype] • 14 Mar, 2013
soni.sapan
thanks dude it is done, can I be able to know which program is currently working on chip?
& why reset button is used?
You can read the hex of the program if thats what you mean. And reset button will restart the execution from fresh just as it would, after the power on.
@shobhit12 • 18 Jun, 2013 Somebody please help me. I have done everything that was said here. Except the SCK thing. I have no option to set the SCK or the jumper. Please help.
I have everything working perfectly using a ponyser but its royally screwed up with the usbasp
@Harshad Italiya • 18 Jun, 2013
shobhit12
Somebody please help me. I have done everything that was said here. Except the SCK thing. I have no option to set the SCK or the jumper. Please help.
I have everything working perfectly using a ponyser but its royally screwed up with the usbasp
Will you please share detail that how you are trying to burn it. Tagging [Prototype] he may help you.
@[Prototype] • 21 Jun, 2013
shobhit12
Somebody please help me. I have done everything that was said here. Except the SCK thing. I have no option to set the SCK or the jumper. Please help.
I have everything working perfectly using a ponyser but its royally screwed up with the usbasp
There's no other way except setting the controller to work on Slow Clock (SCK). Its the only way you can read a brand new Atmega. You can try building a programming that works on Serial Interface. Its fairly simple to make one.
@Harshad Italiya • 21 Jun, 2013
shobhit12
Somebody please help me. I have done everything that was said here. Except the SCK thing. I have no option to set the SCK or the jumper. Please help.
I have everything working perfectly using a ponyser but its royally screwed up with the usbasp
Tagging one more CEan Big_B he may help you.
@Big_B • 22 Jun, 2013 • 1 like Hi soni.sapan,

Try this solutions...

1.Is the USBASP driver is installed correctly?
-If it is showing [!] symbol in device manager. >> Remove old driver and install [this] new driver.

2.Try New AVRdude 2.1. [downlaod]

3. Triple check you connection with Programmer's programming pins to ATmega16 pins [SCK,MISO,MOSI,RESET etc..].

4.Try connecting disconnecting USB. sometime due to loose connection it happens.

5.If RESET switch is connected,Disconnect it.[sometimes it creates problem in AVR while burning.]

Hopefully this may solve your problem.. 👍
-Big_B
@Harshad Italiya • 22 Jun, 2013
Big_B
Hi soni.sapan,

Try this solutions...

1.Is the USBASP driver is installed correctly?
-If it is showing [!] symbol in device manager. >> Remove old driver and install [this] new driver.

2.Try New AVRdude 2.1. [downlaod]

3. Triple check you connection with Programmer's programming pins to ATmega16 pins [SCK,MISO,MOSI,RESET etc..].

4.Try connecting disconnecting USB. sometime due to loose connection it happens.

5.If RESET switch is connected,Disconnect it.[sometimes it creates problem in AVR while burning.]

Hopefully this may solve your problem.. 👍
-Big_B
shobhit12 Please have a look at above reply and give it a try.
@arunchary • 22 Jun, 2013 please check out the connection which are interfaced between USBASP and jtag. following images shows the normal ISP and AVRJTAG compare it once and check it.
https://www.dropbox.com/s/7l90u3nkixc5qm3/avr jtag1.jpg
https://www.dropbox.com/s/xu0twacsp5fi20w/avr jtag.jpg
@SAYYED NAVEED • 20 Sep, 2014 guys i m getting an error
but now problem is that I am trying to burn another program in it, it showing error "mismatch at location 0x00000000" so what is the problem?
plzz help
i m nt getting the fuse bits logic
@[Prototype] • 20 Sep, 2014
SAYYED NAVEED
guys i m getting an error
but now problem is that I am trying to burn another program in it, it showing error "mismatch at location 0x00000000" so what is the problem?
plzz help
i m nt getting the fuse bits logic
You've probably selected the device in the software which doesn't match with your physical chip. For example, you've selected Atemga 16 in the software while your actual chip is Atemga 8.
@karthick417 • 19 Feb, 2016 set fusebits but it show following in
1.auto detecting programmer
2.found USBasp on usb port
3.powering on
4.power on failed
5.can not communicating with target chip
6.retrying again
& so on repeted 4,5,6
@[Prototype] • 22 Feb, 2016
karthick417
set fusebits but it show following in
1.auto detecting programmer
2.found USBasp on usb port
3.powering on
4.power on failed
5.can not communicating with target chip
6.retrying again
& so on repeted 4,5,6
You're already done setting the fuse bits? If you did as mentioned earlier, then you'll need a crystal oscillator connected. It will not work on SCK after fuse bit setting is complete.
@Wagner Lipnharski • 11 Mar, 2016 Just a question:
What version of Windows are you using?
Windows 7 and 8 does not allow USBASP drivers to recognize the programmer in the USB port, since the drivers have not the Microsoft Digital Signature. You need to reboot the PC with this option disabled, so it will work until the next reboot.
@Wagner Lipnharski • 11 Mar, 2016 If this is the problem, download and install the signed USBASP driver from this link:

USBasp AVR Programmer, Program Atmel AVR microcontrollers, $18.00
@Wagner Lipnharski • 11 Mar, 2016
Wagner Lipnharski
If this is the problem, download and install the signed USBASP driver from this link:

USBasp AVR Programmer, Program Atmel AVR microcontrollers, $18.00
It is a shame we can not edit the post... I have no idea where the title of the link came from... just follow the link

USBasp AVR Programmer, Program Atmel AVR microcontrollers, $18.00
@Wagner Lipnharski • 11 Mar, 2016 wrong link, no idea where it comes from...
this is the right link:
https://www.protostack.com/download/USBasp-win-driver-x86-x64-v3.0.7.zip
@abhishek2342 • 23 Jun, 2016 hi guys.i have usbasp programmer and i am trying to burn a new atmega32a chip.but getting an error power on failed.i have put a jumper to select slow clock option in usbasp.and a external oscillator is connected to atmega 32.
@abhishek2342 • 23 Jun, 2016 hi guys.i have usbasp programmer and i am trying to burn a new atmega32a chip.but getting an error power on failed.i have put a jumper to select slow clock option in usbasp.and a external oscillator is connected to atmega 32.
11.9k views

Related Posts

@mayurpawar85 · Oct 8, 2012

what is difference betw'n flash memory & EEPROM ...mostly specified in atmega series microcontroller like atmega 16.
5k views

@Vatsala · Sep 18, 2007

well...i want to do a mini-project in da field of instrumentation and control(prefferably)...culd neone...suggest me hw do i select a topic n strt up?????
16.7k views

@Ankita Katdare · Mar 26, 2015

It is finally here. After months of speculations about super sports bike, Bajaj Auto has taken the wraps off of what is being called the fastest Pulsar yet called Bajaj...
7k views

@Ankita Katdare · Jun 22, 2013

Nokia Inc, the smartphone manufacturer has brought for the Nokia Asha Touch phone users in India, a useful and free app with the Nokia Mail For Exchange. Users of the...
5.4k views

@Ankita Katdare · Jun 9, 2011

It's official. After the release of B.E. 6th Semester results, now it's turn of B.E. 4th Sem results. They will be out in the wee hours of night i.e. at...
5k views