Уже продвинулся, avrdude под гуем его уже видит, читает сигнатуру, но прошивку загрузить не может, но загрузка так и не удалась. Гружу через блютуз.
В дефайнах выставлена частота 7.3728, тип МК мега128, второй уарт, тип запуска WAIT, тип который он предъявляет программе на ПК - ISP, время ожидания 10сек (чтобы БТ успевал соединиться), бутлоадер через терминал отвечает на S фразой AVRBOOT.
Вот что я сейчас использую (файл прикреплен). Это под M128-S, под 9600.
Фьюзы выставлены - BOOTSZ=1k, Boot чего-то там Enable, Protect Boot область режим 2.
Еще фишка - avrdude под гуем только не программирует (типа пишет, что бутлоадер не отвечает на команду write byte), а вот если командную строку скопировать и запустить реально как командную строку - он даже фьюзы не читает.
Ни у кого нет мыслей в чем может быть проблема?
Вот что под CLI пишет avrdude:
- Код: Выделить всё • Развернуть
- C:\Robot>"C:\WinAVR-20080610\bin\avrdude.exe" -p m128 -c avr910 -P com3 -U lfuse
 :r:con:r -U hfuse:r:con:r -U lock:r:con:r -U efuse:r:con:r -U signature:r:con:r
 -F
 Found programmer: Id = "AVRBOOT"; type = S
 Software Version = 0.8; Hardware Version = ?.
 Programmer supports auto addr increment.
 Programmer supports the following devices:
 Device code: 0x43 = ATMEGA128
 avrdude.exe: AVR device initialized and ready to accept instructions
 Reading | ################################################## | 100% 0.03s
 avrdude.exe: Device signature = 0x1e9702
 avrdude.exe: safemode: Verify error - unable to read hfuse properly. Programmer
 may not be reliable.
 avrdude.exe: safemode: To protect your AVR the programming will be aborted
 avrdude.exe: error: programmer did not respond to command: leave prog mode
Добавлено спустя 17 минут 7 секунд:
Вот на такую команду:
"C:\WinAVR-20080610\bin\avrdude.exe" -p m128 -c avr910 -P com3 -U flash:w:"C:\Robot\orfa-1\orfa-m128-9600.hex":a -U signature:r:con:r -F -v
Под гуем avrdude-gui v0.2.0 отвечает:
А под CLI:
- Код: Выделить всё • Развернуть
- C:\Documents and Settings\dead.DEAD-HOME>"C:\WinAVR-20080610\bin\avrdude.exe" -p
 m128 -c avr910 -P com3 -U flash:w:"C:\Robot\orfa-1\orfa-m128-9600.hex":a -U sig
 nature:r:con:r -F -v -v
 avrdude.exe: Version 5.5, compiled on Jun 9 2008 at 14:32:04
 Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
 System wide configuration file is "C:\WinAVR-20080610\bin\avrdude.c
 onf"
 Using Port : com3
 Using Programmer : avr910
 AVR Part : ATMEGA128
 Chip Erase delay : 9000 us
 PAGEL : PD7
 BS2 : PA0
 RESET disposition : dedicated
 RETRY pulse : SCK
 serial program mode : yes
 parallel program mode : yes
 Timeout : 200
 StabDelay : 100
 CmdexeDelay : 25
 SyncLoops : 32
 ByteDelay : 0
 PollIndex : 3
 PollValue : 0x53
 Memory Detail :
 Block Poll Page
 Polled
 Memory Type Mode Delay Size Indx Paged Size Size #Pages MinW
 MaxW ReadBack
 ----------- ---- ----- ----- ---- ------ ------ ---- ------ -----
 ----- ---------
 eeprom 4 12 64 0 no 4096 8 0 9000
 9000 0xff 0xff
 flash 33 6 128 0 yes 131072 256 512 4500
 4500 0xff 0xff
 lfuse 0 0 0 0 no 1 0 0 9000
 9000 0x00 0x00
 hfuse 0 0 0 0 no 1 0 0 9000
 9000 0x00 0x00
 efuse 0 0 0 0 no 1 0 0 9000
 9000 0x00 0x00
 lock 0 0 0 0 no 1 0 0 9000
 9000 0x00 0x00
 calibration 0 0 0 0 no 4 0 0 0
 0 0x00 0x00
 signature 0 0 0 0 no 3 0 0 0
 0 0x00 0x00
 Programmer Type : avr910
 Description : Atmel Low Cost Serial Programmer
 Found programmer: Id = "AVRBOOT"; type = S
 Software Version = 0.8; Hardware Version = ?.p
 Programmer supports auto addr increment.
 Programmer supports the following devices:
 Device code: 0x43 = ATMEGA128
 avrdude.exe: AVR device initialized and ready to accept instructions
 Reading | ################################################## | 100% 0.03s
 avrdude.exe: Device signature = 0x1e9702
 avrdude.exe: safemode: lfuse reads as 3F
 avrdude.exe: safemode: Verify error - unable to read hfuse properly. Programmer
 may not be reliable.
 avrdude.exe: safemode: To protect your AVR the programming will be aborted
 avrdude.exe: error: programmer did not respond to command: leave prog mode


 
 


 
   
  