AVR Flash Programming - schon wieder ;-)

Gast #4009445
Lesenswert?

Hi,

ich schau mir gerade das ISP protokoll wegen verständnissproblemen mit 
dem logic analyzer an....

Mein verständniss war

-> Page buffer füllen
-> Page buffer flashen
-> Warten
-> Page buffer neu füllen

Soweit so gut. Jetzt ist mir aufgefallen, das beim zweiten mal page 
buffer beschreiben nicht bei addr 0 angefangen wird sondern bei 0+page 
buffer size

-> Also ist das nicht die adresse im page buffer, sondern die adresse im 
späteren flash, korrekt??
Gast #4009511
Lesenswert?

"The Flash is programmed one page at a time. The memory page is loaded 
one byte at a time by supplying the 5 LSB of the address and data 
together with the Load Program memory Page instruction. To ensure 
correct loading of the page, the data low byte must be loaded before 
data high byte is applied for a given address. The Program memory Page 
is stored by loading the Write Program memory Page instruction with the 
6 MSB of the address."

Dieses zusammen mit der Tabelle unter "Serial Programming Instruction 
Set" liefert eigentlich alle nötigen Informationen.

Antwort schreiben

Bitte melde dich an, um einen Beitrag zu schreiben.

oder

Mit Google-Account einloggen

Die Registrierung ist kostenlos und dauert nur eine Minute.

Jetzt registrieren