-
Notifications
You must be signed in to change notification settings - Fork 138
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[bug #58251] AT90S8515 STK500v2 problem: only odd bytes are programmed / programming only works in terminal mode. #500
Comments
Lukas Raschendorfer Maybe a duplicate of bug #49082, as it works with a pre-R1336 Release (6.1). |
With the current code, the AVRISPmkII cannot write to the AT90S8535's flash at all: it runs into USB communication errors / timeouts, both in terminal as well as batch mode. |
Now the question is whether we really care about the old AT90S part like AT90S8535. |
Looks like the following is the root cause.
|
Help wanted from the community. PR is welcome. |
funkyluke
Sun 26 Apr 2020 08:27:30 PM UTC
Programmer hardware: avrisp2
Device type: 8535
EEP Programming works:
avrdude -p8535 -cavrisp2 -Pusb -U eeprom:w:eep.hex --> verifies OK
Flash Programming:
root@luke-hp:~# cat short.hex
:200000000102030405060708091011121314151617181920212223242526272829303132E6
:00000001FF
root@luke-hp:~# avrdude -p8535 -cavrisp2 -Pusb -q -q -U flash:w:short.hex
avrdude: verification error, first mismatch at byte 0x0001
0xff != 0x02
root@luke-hp:~# cat short-readback.hex
:2000000001FF03FF05FF07FF09FF11FF13FF15FF17FF19FF21FF23FF25FF27FF29FF31FF84
:00000001F
--> Note that every other (even) byte is 0xFF (not programmed)
But:
root@luke-hp:~# avrdude -p8535 -cavrisp2 -Pusb -t
avrdude: AVR device initialized and ready to accept instructions
Reading | ################################################## | 100% 0.11s
avrdude: Device signature = 0x1e9303 (probably 8535)
avrdude> e
avrdude: erasing chip
avrdude> write flash 0x00 0x11 0x22 0x33 0x44 0x55 0x66 0x77 0x88
avrdude> dump flash 0x00 32
--> so writing in general seems to work, just not using -U and a hex file ?!
Thanks for looking into this!
This issue was migrated from https://savannah.nongnu.org/bugs/?58251
The text was updated successfully, but these errors were encountered: