-
I previously asked the same thing for the ATmega328pb (#1389) and got that to work, now I'm trying to do the same thing for the ATtiny861 the only meaningful difference concerning the serial programming procedure that I can spot in the Datasheet is that the ATtiny has half the page size. I changed that but nothing that makes sense is being written to the flash? What confuses me in the following table is that a adr MSB and adr LSB are needed even though this should be the address within the page, where an LSB would be enough to address 32 words.
Does anyone see what I am missing? Thank's in advance! |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 5 replies
-
Loadpage will be fine when overspecified but have you remembered to give the writepage command one more address bit? That's needed as the page size is smaller. |
Beta Was this translation helpful? Give feedback.
-
I'm just gonna supply the full log. I'm now at a verbosity level where I log every single instruction, so in case anybody has the time to look at it, this should make clear where my mistake lies. I'm writing each address to the address (data at 0x11 should be 0x11) to be sure that there are no alignment errors. The Verification mismatch has to happen because it compares real firmware data to the addresses I've written. But even these do not appear where they should. Show Log
|
Beta Was this translation helpful? Give feedback.
-
The page write commands look OK in your log, as do the preceding page load commands. Only half the page is written? Have you checked independently with a different programmer and, eg, AVRDUDE? Could it be that your read routine fails? Have you checked your verify routine? Looks strange that the log writes word addresses 0..95, and that the log verifies word(?) addresses 1..64. Also I note that the log appears to claim file data are 0xffff for word addresses 16..31, but the page load commands appear to write words 0x0010..0x001f. |
Beta Was this translation helpful? Give feedback.
Figured it out, there was no attiny861 in that device it's an attiny261. The documentation was wrong.