View previous topic :: View next topic |
Author |
Message |
antoonmilatz
Joined: 01 May 2007 Posts: 25
|
Posted: Mon Aug 23, 2010 10:03 am Post subject: programmer problems on laptop |
|
|
I've been debugging a programmer issue with my laptop and still I cannot figure out why it (sometimes) doesn't work :
I do all my programming and debugging on my desktop pc with the target also on my workbench, all works ok.
For 'series programming' I take my laptop, load the code, use the SAME programmer (AVR_ISP from MCSELEC) and go to the equipment which must be programmed.
Many times it doesn't work, the software cannot identify the chip being used, the divide by 8 fuse bit doesn't get programmed, all sorts of problems. I even tried this with another ISP (Olimex) with the same results.
Only difference in setups are the PC's : desktop vs laptop.
Anyone having same experience ? Any thoughts of the cause of this problem ? Can't the laptop-USB not deliver enough current ?
TooN |
|
Back to top |
|
|
harrydejonge
Joined: 06 Jan 2006 Posts: 19
|
Posted: Mon Aug 23, 2010 11:48 am Post subject: |
|
|
I have the same issue.
???? |
|
Back to top |
|
|
Ross_ValuSoft
Joined: 20 Nov 2005 Posts: 275 Location: Melbourne, Australia
|
Posted: Mon Aug 23, 2010 1:34 pm Post subject: |
|
|
Gentlemen,
I do not have this programmer, so feel free to reject my question/help as you see fit.
Could the quote below from the product description be relevant?
Quote: | A jumper is used to select the power source. For low power devices an external power source should be used. |
Cheers,
Ross |
|
Back to top |
|
|
albertsm
Joined: 09 Apr 2004 Posts: 5913 Location: Holland
|
Posted: Tue Aug 24, 2010 7:25 pm Post subject: |
|
|
you mean you use USB-ISP ? or which programmer exactly?
when it is usb powered, maybe the laptop does not provide enough current?
I advise to power a circuit from it's own power. Especial when the voltage is different then 5V.
Then make sure when you use USB programmer, you have the driver installed. For example some atmel programmers need a driver. These come with avr studio.
When the programmer works with avr studio, then install libusb (read the help please ! ).
Since it some times work the above will be ok.
But maybe you have different drivers/versions?
When it works on a normal PC, i do not see a good reason why it would not work on a laptop. Only when using multiple usb devices at the same hub there can be problems.
please add more details about power, windows version of both pc's. _________________ Mark |
|
Back to top |
|
|
antoonmilatz
Joined: 01 May 2007 Posts: 25
|
Posted: Thu Aug 26, 2010 6:19 am Post subject: |
|
|
Mark,
I'm using the USB-ISP programmer which has been bought from you (PPHU "EMBUD"), it is used WITHOUT jumper so our DUT get's his own power.
We have the correct drivers installed on both desktop and laptop, both have same version of BASCOM.
Both computers are running windows XP SP3.
We have another programmer from Olimex which does exactly the same, the olimex programmer we also tried with the tool as provided by AVR Studio but with negative results on the laptop.
At the beginning we noticed that some of the fuses where not programmed properly (specially the divide by 8 bit) but programming the code went without problems ! Only the code was running 8x slower ... We thought we had bad AVR's and could not figure out why this happened, trying another AVR worked fine.
So far we cannot explain above, no external usb hubs are used, w've also tried different USB ports but no luck.
Although not desperate (we still have the desktop PC) we do not understand why this is happening, we cannot go into the field to update our DUT's using a laptop since programming is not reliable.
TooN |
|
Back to top |
|
|
albertsm
Joined: 09 Apr 2004 Posts: 5913 Location: Holland
|
Posted: Thu Aug 26, 2010 8:23 pm Post subject: |
|
|
Toon
Which chip do you use? When the programmer works i see no reason why it could not set the fuse bits.
When it works on a desktop PC, it means programmer and electronics are ok.
Do you manual set the fusebits or do you use $PROG ?
And do i understand right that the Olimex prog has the same behavior? _________________ Mark |
|
Back to top |
|
|
antoonmilatz
Joined: 01 May 2007 Posts: 25
|
Posted: Fri Aug 27, 2010 5:58 am Post subject: |
|
|
Mark,
I'm using ATMEGA644 and ATMEGA644P and set the fuses manually.
It happens with both OLIMEX end EMBUD, no difference here.
I think you are right that both programmers being ok but would like to know why they work intermittent on my laptop !
Also the prog tool (using the laptop) doesn't even detect the ID bits (I thought the chip was damaged) but verification on my desktop showed different .
I noticed somebody else had similar problems, any comments from him ?
TooN |
|
Back to top |
|
|
albertsm
Joined: 09 Apr 2004 Posts: 5913 Location: Holland
|
Posted: Fri Aug 27, 2010 8:21 am Post subject: |
|
|
Toon
Problem seems to be the laptop.
Did you tried to update drivers? Maybe there is a known problem for your laptop and USB.
I bought Driver Detective software some time ago which detects new system drivers very convenient.
I advise to try with a hub that is powered by an external supply. If that works it means the problem is in the power. _________________ Mark |
|
Back to top |
|
|
ATIU
Joined: 15 Oct 2004 Posts: 534
|
|
Back to top |
|
|
|