Reply by Meindert Sprang●October 7, 20042004-10-07
"Meindert Sprang" <mhsprang@NOcustomSPAMware.nl> wrote in message
news:10m1v158u732me8@corp.supernews.com...
> Hi all,
>
> I have a very annoying problem: I have an existing design with an
> ATmega8515, with an ISP connector setup as specified in one of the Atmel
> appnotes about implementing an ISP connector. It uses a network on the
reset
> line, with a 10k resistor to VCC, a 4n7 cap to ground and a diode across
the
> resistor for protection. This has always worked on a 2313, a 8515 and a
> Mega8515. I recently upgraded the design to a Mega162 and since then 1 out
> of three times the board refuses to have the configuration fuses
programmed.
> Also reading the chip ID gives random results many times. Once the fuses
are
> programmed successfully (to use an external crystal at 8MHz), everything
> runs fine and the code can be programmed too.
>
Ok guys, thanks for all the suggestions. I completely failed to notice
the -! option to set the clock frequency. I have set it to 1MHz and all
devices program fine now.
Regards,
Meindert
Reply by Meindert Sprang●October 6, 20042004-10-06
"Carsten" <xnews1@luna.kyed.com> wrote in message
news:2628m05durdcvmkcl836cqf3jc9vb59pbo@4ax.com...
> >the problem could be the SPI timing. The mega162 runs at 1MHz when the
> >fuses are not programmed.
> >
> >There is a command in the STK500 protocol to slow down the SPI.
> >However, I don't know about the STK500 utility, because I use Linux.
>
> If that is the problem then
> Just lower the STK500 clock on the first programming , until fuses are
> set correctly.
And the $64.000 question is: How?
Meindert
Reply by Carsten●October 6, 20042004-10-06
>the problem could be the SPI timing. The mega162 runs at 1MHz when the
>fuses are not programmed.
>
>There is a command in the STK500 protocol to slow down the SPI.
>However, I don't know about the STK500 utility, because I use Linux.
If that is the problem then
Just lower the STK500 clock on the first programming , until fuses are
set correctly.
Carsten
Reply by Jan-Hinnerk Reichert●October 6, 20042004-10-06
Meindert Sprang wrote:
> Hi all,
>
> I have a very annoying problem: I have an existing design with an
> ATmega8515, with an ISP connector setup as specified in one of the
> Atmel appnotes about implementing an ISP connector. It uses a
> network on the reset line, with a 10k resistor to VCC, a 4n7 cap to
> ground and a diode across the resistor for protection. This has
> always worked on a 2313, a 8515 and a Mega8515. I recently upgraded
> the design to a Mega162 and since then 1 out of three times the
> board refuses to have the configuration fuses programmed. Also
> reading the chip ID gives random results many times. Once the fuses
> are programmed successfully (to use an external crystal at 8MHz),
> everything runs fine and the code can be programmed too.
>
> Can anyone shed some light on this?
>
> Meindert
Hi Meindert,
the problem could be the SPI timing. The mega162 runs at 1MHz when the
fuses are not programmed.
There is a command in the STK500 protocol to slow down the SPI.
However, I don't know about the STK500 utility, because I use Linux.
/Jan-Hinnerk
Reply by ●October 4, 20042004-10-04
On Monday, in article
<4161940c$0$23961$5402220f@news.sunrise.ch> none@none.net
"Rene Tschaggelar" wrote:
>Meindert Sprang wrote:
>
>> "dmm" <dmmilne_removethis_@ozemail.com.au> wrote in message
>> news:3pj2m05gecomonlpmc2ubn5h1rabugcljd@4ax.com...
>>
>>
>>>Try PonyProg from www.lancos.com
>>
>>
>> Wouldn't it be logical that the tools from Atmel would work? :-)
>
>Not necessarily.
>Similar to Microchip, software is not thir business.
>It took Microchip about 10 years after the release of
>23bit windows to come out with a 32bit MPLAB.
Reply by Rene Tschaggelar●October 4, 20042004-10-04
Meindert Sprang wrote:
> "dmm" <dmmilne_removethis_@ozemail.com.au> wrote in message
> news:3pj2m05gecomonlpmc2ubn5h1rabugcljd@4ax.com...
>
>
>>Try PonyProg from www.lancos.com
>
>
> Wouldn't it be logical that the tools from Atmel would work? :-)
Not necessarily.
Similar to Microchip, software is not thir business.
It took Microchip about 10 years after the release of
23bit windows to come out with a 32bit MPLAB.
Just in case : There is a Pascal compiler for the AVR
that comes with programmer.
http://www.e-lab.de , including libraries, forum and the lot.
Rene
--
Ing.Buero R.Tschaggelar - http://www.ibrtses.com
& commercial newsgroups - http://www.talkto.net
Reply by Lewin A.R.W. Edwards●October 4, 20042004-10-04
Hi Meindert,
> Mega8515. I recently upgraded the design to a Mega162 and since then 1 out
> of three times the board refuses to have the configuration fuses programmed.
Just a thought - Is your STK500 using the latest latest firmware as
included with the latest build of AVR Studio?
Reply by Meindert Sprang●October 4, 20042004-10-04
"Lewin A.R.W. Edwards" <larwe@larwe.com> wrote in message
news:608b6569.0410041006.49d068d7@posting.google.com...
> Hi Meindert,
>
> > Mega8515. I recently upgraded the design to a Mega162 and since then 1
out
> > of three times the board refuses to have the configuration fuses
programmed.
>
> Just a thought - Is your STK500 using the latest latest firmware as
> included with the latest build of AVR Studio?
I'm not quite sure. I haven't downloaded the latest version yet, so that
might be the problem. The STK500 utility itself is V1.40. I'll check that
anyway. Thanks for the hint.
Meindert
Reply by Meindert Sprang●October 4, 20042004-10-04
"dmm" <dmmilne_removethis_@ozemail.com.au> wrote in message
news:3pj2m05gecomonlpmc2ubn5h1rabugcljd@4ax.com...
> Try PonyProg from www.lancos.com
Wouldn't it be logical that the tools from Atmel would work? :-)
Meindert
Reply by dmm●October 4, 20042004-10-04
On Mon, 4 Oct 2004 15:04:14 +0200, "Meindert Sprang" <mhsprang@NOcustomSPAMware.nl> wrote:
>"Rene Tschaggelar" <none@none.net> wrote in message
>news:41614849$0$23954$5402220f@news.sunrise.ch...
>>
>> I'm using a similar network, 10k up, 100nF to GND and 100 Ohm
>> to the ISP.
>>
>> Hmm, the lot runs on 5V or perhaps lower ?
>
>Everything runs at 5V.
>
>> I once found that there is some bit timing, which is dependent on
>> the voltage. While at 5v is was 3ms per bit, it increased to 9ms
>> at 3.3V or so. The programmer, in my case the Equinox from
>> Meridian has the short value fixed. Fortunately, it was editable
>> somewhere in the options. Took me a day.
>
>I'm using the STK500 utility from Atmel. No timings to set. I cannot find
>anything about it on Atmel's website either. I'll try an upgrade of
>AVRStudio in the next couple of days.
>
>Meindert
>