Yahoo Groups archive

AVR-Chat

Index last updated: 2026-04-28 22:41 UTC

Message

Re: [AVR-Chat] What is wrong with this?

2008-01-27 by dlc

I found part of it.  One spot in the AVR plugin was set to Mega16 
instead of 90S2313.  Once that was changed then it compiled, downloaded 
and ran properly.  But NOW it refuses to program again, even with a -F 
(force) in avrdude.  Avrdude defaults (and I don't change this) to 
"safe" mode and won't let you change the fuses unless you explicitly say 
to, so the fuses have not been changed, but I still can't get it to take 
a program now.  Some days are like this...

thanks all,
DLC

dlc wrote:
> Yup,
> 
> 10MHz crystal, 5V Vdd.  One compiler (The Bascom one) works, avr-gcc 
> does not.  There is no particular magic involved with an AVR chip and 
> I've used these for years with no issue with Bascom and Codevision, I'm 
> a bit puzzled why the avr-gcc one doesn't.  The next step is obvious of 
> course, time to dig into the assembly to see what was created and see 
> what went wrong.  But before I waded into the tangle that most compilers 
> make of their code I thought that I'd ask if anyone else has heard of 
> such a thing...
> 
> Thanks,
> DLC
> 
> John Samperi wrote:
>> At 02:47 PM 27/01/2008, you wrote:
>>> #define F_CPU 10000000UL
>> Is it a 10MHz chip? (90S2313-10)
>> Are you running it at 5V?
>> I'm guessing you have a 10MHz crystal or it would not program.
>>
>> Regards
>>
>> John Samperi
>>
>> ********************************************************
>> Ampertronics Pty. Ltd.
>> 11 Brokenwood Place Baulkham Hills, NSW 2153 AUSTRALIA
>> Tel. (02) 9674-6495       Fax (02) 9674-8745
>> Email: john@ampertronics.com.au
>> Website  http://www.ampertronics.com.au
>> *Electronic Design * Custom Products * Contract Assembly
>> ********************************************************
>>
>>
>>
>>  
>> Yahoo! Groups Links
>>
>>
>>
> 

-- 
-------------------------------------------------
Dennis Clark          TTT Enterprises
www.techtoystoday.com
-------------------------------------------------

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.