Problem programming ATMEGA328P

Mr Crusty
 
Avatar
 
Betreff:

Problem programming ATMEGA328P

 · 
Gepostet: 10.03.2012 - 18:20 Uhr  ·  #1
Hi Rolf,
I am using ISP3-USB with firmware 4.02 HW : 1.01 update 111021

I have been trying to programme a ATMEGA328P and keep getting the error message
"Wrong device-ID : 1E950F MEGA328P expected".

Same ATMEGA328P when ID read by Atmel STK500 development kit.
Gives signature as Ox1E Ox95 Ox0F and confirms as ATMEGA328P

Substituted 328p for ATMEGA168P in the same circuit and recompiled code for ATMEGA168P
ISP3-USB loaded as expected.

Is it a bug or am I doing something stupid?

Best
Mr Crusty
:(
Gunter
Administrator
Avatar
Geschlecht:
Herkunft: Frankfurt Main / Germany
Beiträge: 1697
Dabei seit: 02 / 2003
Betreff:

Re: Problem programming ATMEGA328P

 · 
Gepostet: 10.03.2012 - 20:36 Uhr  ·  #2
Hi Mr Crusty,

I assume the fuses of the ATMEGA328P are actually set to use a low frequency
source (CKDIV8 set ?) and now the AVRco clocks the SPI too fast.

1. compile the projet with setting:
ProcClock = 500000; //test with 500kHz
or use
SPIclk = 500000; in the "Define_Fuses" section.

2. program the correct clock fuses (at that low speed)

3. redo the changes above and try again with your speed.

HTH
Gunter
rh
Administrator
Avatar
Geschlecht:
Herkunft: Germany
Alter: 25
Homepage: e-lab.de
Beiträge: 5558
Dabei seit: 03 / 2002
Betreff:

Re: Problem programming ATMEGA328P

 · 
Gepostet: 10.03.2012 - 22:30 Uhr  ·  #3
and also check this:
Der an diesem Beitrag angefügte Anhang ist entweder nur im eingeloggten Zustand sichtbar oder die Berechtigung Deiner Benutzergruppe ist nicht ausreichend.
Mr Crusty
 
Avatar
 
Betreff:

Re: Problem programming ATMEGA328P

 · 
Gepostet: 11.03.2012 - 12:35 Uhr  ·  #4
Gunter, Rolf,

Thanks for the speedy help and information.

Gunter, followed your suggestions and the code is now being downloaded to the chip.

Very much appreciate the help

Best

Mr Crusty :-) :-)
Gewählte Zitate für Mehrfachzitierung:   0

Registrierte in diesem Topic

Aktuell kein registrierter in diesem Bereich

Die Statistik zeigt, wer in den letzten 5 Minuten online war. Erneuerung alle 90 Sekunden.
MySQL Queries: 14 · Cache Hits: 14   75   89 · Page-Gen-Time: 0.027849s · Speichernutzung: 2 MB · GZIP: ein · Viewport: SMXL-HiDPI